Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
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/compiler-cli/src/transformers/inline_resources" />
|
---|
9 | import * as ts from 'typescript';
|
---|
10 | import { MetadataObject, MetadataValue } from '../metadata/index';
|
---|
11 | import { MetadataTransformer, ValueTransform } from './metadata_cache';
|
---|
12 | /** A subset of members from AotCompilerHost */
|
---|
13 | export declare type ResourcesHost = {
|
---|
14 | resourceNameToFileName(resourceName: string, containingFileName: string): string | null;
|
---|
15 | loadResource(path: string): Promise<string> | string;
|
---|
16 | };
|
---|
17 | export declare type StaticResourceLoader = {
|
---|
18 | get(url: string | MetadataValue): string;
|
---|
19 | };
|
---|
20 | export declare class InlineResourcesMetadataTransformer implements MetadataTransformer {
|
---|
21 | private host;
|
---|
22 | constructor(host: ResourcesHost);
|
---|
23 | start(sourceFile: ts.SourceFile): ValueTransform | undefined;
|
---|
24 | updateDecoratorMetadata(loader: StaticResourceLoader, arg: MetadataObject): MetadataObject;
|
---|
25 | }
|
---|
26 | export declare function getInlineResourcesTransformFactory(program: ts.Program, host: ResourcesHost): ts.TransformerFactory<ts.SourceFile>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.