blob: 66f107d3a6c56a7dabe96c6ba35199e3aec42db9 (
plain)
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
|
/// <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 { TsConfig } from './types';
export interface Project {
(reporter?: Reporter): ICompileStream;
src(this: Project): NodeJS.ReadWriteStream;
readonly typescript?: typeof ts;
readonly projectDirectory: string;
readonly config: TsConfig;
readonly options: ts.CompilerOptions;
}
export interface ProjectInfo {
input: FileCache;
output: Output;
compiler: ICompiler;
singleOutput: boolean;
options: ts.CompilerOptions;
typescript: typeof ts;
directory: string;
reporter: Reporter;
}
export declare function setupProject(projectDirectory: string, config: TsConfig, options: ts.CompilerOptions, typescript: typeof ts): Project;
export interface ICompileStream extends NodeJS.ReadWriteStream {
js: stream.Readable;
dts: stream.Readable;
}
|