-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathproject.d.ts
35 lines (35 loc) · 1.41 KB
/
project.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// <reference types="node" />
import * as stream from 'stream';
import * as ts from 'typescript';
import { Reporter } from './reporter';
import { FileCache } from './input';
import { Output } from './output';
import { ICompiler } from './compiler';
import { FinalTransformers, TsConfig } from './types';
export interface Project {
(reporter?: Reporter): ICompileStream;
src(this: Project): NodeJS.ReadWriteStream;
readonly typescript?: typeof ts;
readonly projectDirectory: string;
readonly configFileName: string;
readonly rawConfig: any;
readonly config: TsConfig;
readonly options: ts.CompilerOptions;
readonly projectReferences: ReadonlyArray<ts.ProjectReference> | undefined;
}
export interface ProjectInfo {
input: FileCache;
output: Output;
compiler: ICompiler;
singleOutput: boolean;
options: ts.CompilerOptions;
projectReferences: ReadonlyArray<ts.ProjectReference>;
typescript: typeof ts;
directory: string;
reporter: Reporter;
}
export declare function setupProject(projectDirectory: string, configFileName: string, rawConfig: any, config: TsConfig, options: ts.CompilerOptions, projectReferences: ReadonlyArray<ts.ProjectReference>, typescript: typeof ts, finalTransformers: FinalTransformers, useFileCompiler: boolean | undefined): Project;
export interface ICompileStream extends NodeJS.ReadWriteStream {
js: stream.Readable;
dts: stream.Readable;
}