1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as ts from 'typescript';
|
10 | import { MetadataObject, MetadataValue } from '../metadata/index';
|
11 | import { MetadataTransformer, ValueTransform } from './metadata_cache';
|
12 |
|
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>;
|