UNPKG

888 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. 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 */
8import * as o from './output/output_ast';
9import { R3DependencyMetadata } from './render3/r3_factory';
10import { R3Reference } from './render3/util';
11export interface InjectableDef {
12 expression: o.Expression;
13 type: o.Type;
14 statements: o.Statement[];
15}
16export interface R3InjectableMetadata {
17 name: string;
18 type: R3Reference;
19 internalType: o.Expression;
20 typeArgumentCount: number;
21 providedIn: o.Expression;
22 useClass?: o.Expression;
23 useFactory?: o.Expression;
24 useExisting?: o.Expression;
25 useValue?: o.Expression;
26 userDeps?: R3DependencyMetadata[];
27}
28export declare function compileInjectable(meta: R3InjectableMetadata): InjectableDef;