source: trip-planner-front/node_modules/@angular-devkit/build-optimizer/src/helpers/transform-javascript.d.ts@ 188ee53

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 */
8import { RawSourceMap } from 'source-map';
9import * as ts from 'typescript';
10export declare type TransformerFactoryCreator = (program?: ts.Program) => ts.TransformerFactory<ts.SourceFile>;
11export interface TransformJavascriptOptions {
12 content: string;
13 inputFilePath?: string;
14 outputFilePath?: string;
15 emitSourceMap?: boolean;
16 strict?: boolean;
17 typeCheck?: boolean;
18 getTransforms: TransformerFactoryCreator[];
19}
20export interface TransformJavascriptOutput {
21 content: string | null;
22 sourceMap: RawSourceMap | null;
23 emitSkipped: boolean;
24}
25export declare function transformJavascript(options: TransformJavascriptOptions): TransformJavascriptOutput;
Note: See TracBrowser for help on using the repository browser.