Typescript 4 support? #3506
-
Background: I have bunch of AWS CDK code for a db migration construct that I'd like to publish as a polyglot CDK construct library. The thing uses Knex (http://knexjs.org/) for database migrations. and works fine as CDK stack in one project. The problem is, Knex's typescript support requires TS 4.1 (https://github.com/knex/knex/blob/cb2300155bbbda14da5e3db7966c25b018db0db7/UPGRADING.md?plain=1#L106) but JSII 1.57.0 forces TS 3.9.10. When I follow the tutorials and try to set up a CDK library project using projen the build fails with spectacular list of errors related to Knex's index.d.ts. I've been trying to find out if TS v4 support is actively worked on in JSII but I've so far found only a stale branch from last year and some vague mentions about compiler incompatibilities here and there. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We are preparing a TypeScript 4.9-based release line that is currently available (as pre-release) using the |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
We are preparing a TypeScript 4.9-based release line that is currently available (as pre-release) using the
v4.9-next
tag. Feel free to give that a try!