You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a module with jsii and it depends on another module that has a .d.ts file with a private field declaration, the compiler will issue the following error:
error TS7033: Property 'assetParameters' implicitly has type 'any', because its get accessor lacks a return type annotation.
The above error is thrown from the declaration files included with @aws-cdk/core. This technically means that it is currently impossible to author jsii modules.
Affected Languages
TypeScript or Javascript
General Information
JSII Version: 0.20.6
What is the problem?
jsii currently depends on typescript@3.6.4 which has a bug where private fields without type declarations in .d.ts files are regarded when noImplicitAny is true (which is by default for jsii). This bug is fixed by microsoft/TypeScript#33896 and released in v3.7.2.
The text was updated successfully, but these errors were encountered:
Due to a TypeScript [bug], it was impossible to write a jsii module
that takes a dependency on a module that has private type declarations
in their d.ts file since they are untyped by definition.
This temporary fix sets `noImplicitAny` to `false` in order to disable
this check and enable the dependency use case until we upgrade to the 3.7.x
version-line.
Fixes#994
[bug]: microsoft/TypeScript#33894
Due to a TypeScript [bug], it was impossible to write a jsii module
that takes a dependency on a module that has private type declarations
in their d.ts file since they are untyped by definition.
This temporary fix sets `noImplicitAny` to `false` in order to disable
this check and enable the dependency use case until we upgrade to the 3.7.x
version-line.
Fixes#994
[bug]: microsoft/TypeScript#33894
🐛 Bug Report
When compiling a module with jsii and it depends on another module that has a
.d.ts
file with aprivate
field declaration, the compiler will issue the following error:The above error is thrown from the declaration files included with @aws-cdk/core. This technically means that it is currently impossible to author jsii modules.
Affected Languages
TypeScript
orJavascript
General Information
What is the problem?
jsii currently depends on typescript@3.6.4 which has a bug where private fields without type declarations in .d.ts files are regarded when
noImplicitAny
is true (which is by default for jsii). This bug is fixed by microsoft/TypeScript#33896 and released in v3.7.2.The text was updated successfully, but these errors were encountered: