dgeni-packages icon indicating copy to clipboard operation
dgeni-packages copied to clipboard

typescript/index.d.ts file empty

Open sahilbabbar opened this issue 4 years ago • 0 comments

Recently updated my Angular library project to Angular v11.2.2 and also updated Dgeni and Dgeni Packages. Now the following error pops-up on the mentioned line of code:

let apiDocsPackage = new DgeniPackage('apiDocsPackage', [require('dgeni-packages/jsdoc'), require('dgeni-packages/nunjucks'), require('dgeni-packages/typescript')]);

Error

Argument type (this | {})[] is not assignable to parameter type PackageRef[] | undefined   Type (this | {})[] is not assignable to type PackageRef[]     Type this | {} is not assignable to type PackageRef 

Perhaps this error pops up because dgeni-packages/typescript/index.d.ts has just one line:

export {};

Is it due to an issue with dgeni-packages/typescript or something else?

sahilbabbar avatar Mar 10 '21 19:03 sahilbabbar