app_config.d.ts 966 B

1234567891011121314151617181920212223
  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 { Tree } from '@angular-devkit/schematics';
  9. import ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
  10. /** App config that was resolved to its source node. */
  11. export interface ResolvedAppConfig {
  12. /** Tree-relative path of the file containing the app config. */
  13. filePath: string;
  14. /** Node defining the app config. */
  15. node: ts.ObjectLiteralExpression;
  16. }
  17. /**
  18. * Resolves the node that defines the app config from a bootstrap call.
  19. * @param bootstrapCall Call for which to resolve the config.
  20. * @param tree File tree of the project.
  21. * @param filePath File path of the bootstrap call.
  22. */
  23. export declare function findAppConfig(bootstrapCall: ts.CallExpression, tree: Tree, filePath: string): ResolvedAppConfig | null;