Downlevel generated .d.ts files to support angular versions >= v5
k3nsei opened this issue · 3 comments
k3nsei commented
Files generated by TypeScript compiler v4 cannot be consumed by older versions of TypeScript. To support older versions of angular we need to downlevel .d.ts files. Ideally support for TS 2.9.0
basters commented
Not sure if its possible... I may suggest to specify somewhere in Readme which version of package supports which angular.
Something like:
ng-in-viewport | Angular |
---|---|
5.x.x | 5.x |
6.3 | 10+ |
k3nsei commented
There is this package https://github.com/sandersn/downlevel-dts that will help covering Angular v7+
But for supporting Angular v5 and v6 I must sadly agree that separate branch needs to be created.
So there is branch 6.1.x for Angular v5 and v6. For other we can try to downlever typings.
k3nsei commented
Invalid as angular world moved forward