Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
887 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 | import { RawSourceMap } from 'source-map';
|
---|
9 | import * as ts from 'typescript';
|
---|
10 | export declare type TransformerFactoryCreator = (program?: ts.Program) => ts.TransformerFactory<ts.SourceFile>;
|
---|
11 | export interface TransformJavascriptOptions {
|
---|
12 | content: string;
|
---|
13 | inputFilePath?: string;
|
---|
14 | outputFilePath?: string;
|
---|
15 | emitSourceMap?: boolean;
|
---|
16 | strict?: boolean;
|
---|
17 | typeCheck?: boolean;
|
---|
18 | getTransforms: TransformerFactoryCreator[];
|
---|
19 | }
|
---|
20 | export interface TransformJavascriptOutput {
|
---|
21 | content: string | null;
|
---|
22 | sourceMap: RawSourceMap | null;
|
---|
23 | emitSkipped: boolean;
|
---|
24 | }
|
---|
25 | export declare function transformJavascript(options: TransformJavascriptOptions): TransformJavascriptOutput;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.