Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
987 bytes
|
Line | |
---|
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 | /// <amd-module name="@angular/core/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/convert_directive_metadata" />
|
---|
9 | import { StaticSymbol } from '@angular/compiler';
|
---|
10 | import * as ts from 'typescript';
|
---|
11 | /** Error that will be thrown if an unexpected value needs to be converted. */
|
---|
12 | export declare class UnexpectedMetadataValueError extends Error {
|
---|
13 | }
|
---|
14 | /**
|
---|
15 | * Converts a directive metadata object into a TypeScript expression. Throws
|
---|
16 | * if metadata cannot be cleanly converted.
|
---|
17 | */
|
---|
18 | export declare function convertDirectiveMetadataToExpression(metadata: any, resolveSymbolImport: (symbol: StaticSymbol) => string | null, createImport: (moduleName: string, name: string) => ts.Expression, convertProperty?: (key: string, value: any) => ts.Expression | null): ts.Expression;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.