imports.d.ts 632 B

1234567891011121314151617
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import * as ts from 'typescript';
  9. /** Interface describing a resolved import. */
  10. export interface Import {
  11. /** Name of the imported symbol. */
  12. symbolName: string;
  13. /** Module name from which the symbol has been imported. */
  14. moduleName: string;
  15. }
  16. /** Resolves the import of the specified identifier. */
  17. export declare function getImportOfIdentifier(node: ts.Identifier, typeChecker: ts.TypeChecker): Import | null;