cipchk / ngx-countdown

Simple, easy and performance countdown for angular
https://cipchk.github.io/ngx-countdown/
MIT License
192 stars 57 forks source link

An accessor cannot be declared in an ambient context. #65

Closed LuisPeregrinaPSL closed 4 years ago

LuisPeregrinaPSL commented 4 years ago

Bug Report or Feature Request (mark with an x)


[x] Bug report -> please search issues before submitting
[ ] Feature request
[ ] Documentation issue or request

Current behavior

An accessor cannot be declared in an ambient context: get left() in countdown-component.

Expected behavior

Executes without problem

Environment

TS 3.7


Angular version: 8

ngx-countdown version: 8

Browser:
- [x] Chrome (desktop) version 80.0.3987.163
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX

Others:
Seems to be due to https://github.com/microsoft/TypeScript/issues/33939
Removing the "get" fixes the issue.