imports.d.ts 547 B

123456789101112131415
  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.io/license
  7. */
  8. import * as ts from 'typescript';
  9. export declare type Import = {
  10. name: string;
  11. importModule: string;
  12. node: ts.ImportDeclaration;
  13. };
  14. /** Gets import information about the specified identifier by using the type checker. */
  15. export declare function getImportOfIdentifier(typeChecker: ts.TypeChecker, node: ts.Identifier): Import | null;