mpalourdio / intl-tel-input-ng

:telephone: Angular module for intl-tel-input integration (https://github.com/jackocnr/intl-tel-input)
MIT License
18 stars 6 forks source link

TypeScript backwards compatibility not given #10

Closed DavidTalamona closed 4 years ago

DavidTalamona commented 4 years ago

Actual behavior

When using "intl-tel-input-ng" with Ionic 4, which is forcing TypeScript 4.3.4 (and Angular 8.1.2) I get the following error: An accessor cannot be declared in an ambient context.

I understood that I would have to update TypeScript to 3.7+ but as I sad, Ionic 4 does not let me (forces TS < 3.5). Is it possible to change the code in a way, so that it's backwards compatible?

intl-tel-input-ng version

0.1.0 Works fine with 0.7.0

mpalourdio commented 4 years ago

Sorry, but that won't happen. Upgrading typescript is cheap. The ionic team should follow the angular peer dependencies.