Previously, if ngtsc encountered a VariableDeclaration without an initializer, it would assume that the variable was undefined, and return that result. However, for symbols exported from external modules that resolve to .d.ts files, variable declarations are of the form: export declare let varName: Type; This form also lacks an initializer, but indicates the presence of an importable symbol which can be referenced. This commit changes the static resolver to understand variable declarations with the 'declare' keyword and to generate references when it encounters them. PR Close #25775
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%