mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
valueDeclaration is only set when the Symbol type is a `Value`: * [setValueDeclaration](https://sourcegraph.com/github.com/microsoft/TypeScript@d8b21a8d6cef772fea5cf2a507b651c5d38194bd/-/blob/src/compiler/binder.ts?L321-322) * [Value union](https://sourcegraph.com/github.com/microsoft/TypeScript@d8b21a8d6cef772fea5cf2a507b651c5d38194bd/-/blob/src/compiler/types.ts?L4849:9#tab=references) This won't be the case if the symbol is an interface (notice that `Interface` is not in the union for `Value` above). For this reason, we can't rely on the `valueDeclaration` property of the symbol. Instead, it's more reliable to just compare the first items in the `declarations` list. PR Close #45292 |
||
|---|---|---|
| .. | ||
| tslint | ||
| typescript | ||
| BUILD.bazel | ||
| import_manager.ts | ||
| line_mappings.ts | ||
| load_esm.ts | ||
| ng_component_template.ts | ||
| ng_decorators.ts | ||
| parse_html.ts | ||
| project_tsconfig_paths.ts | ||
| schematics_prompt.ts | ||
| template_ast_visitor.ts | ||