2016-08-14 20:16:11 +02:00
|
|
|
/// <reference path="../compiler/types.ts"/>
|
|
|
|
/// <reference path="../compiler/sys.ts"/>
|
|
|
|
/// <reference path="../services/jsTyping.ts"/>
|
|
|
|
|
2016-08-12 23:01:23 +02:00
|
|
|
declare namespace ts.server {
|
|
|
|
export interface InstallTypingsRequest {
|
|
|
|
readonly projectName: string;
|
|
|
|
readonly fileNames: string[];
|
|
|
|
readonly projectRootPath: ts.Path;
|
|
|
|
readonly safeListPath: ts.Path;
|
|
|
|
readonly packageNameToTypingLocation: ts.Map<string>;
|
|
|
|
readonly typingOptions: ts.TypingOptions;
|
|
|
|
readonly compilerOptions: ts.CompilerOptions;
|
|
|
|
readonly cachePath: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CompressedData {
|
|
|
|
length: number;
|
|
|
|
compressionKind: string;
|
|
|
|
data: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ServerHost extends System {
|
|
|
|
setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
|
|
|
|
clearTimeout(timeoutId: any): void;
|
|
|
|
setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
|
|
|
|
clearImmediate(timeoutId: any): void;
|
|
|
|
writeCompressedData(prefix: string, data: CompressedData, suffix: string): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface InstallTypingsResponse {
|
|
|
|
readonly projectName: string;
|
|
|
|
readonly typingOptions: ts.TypingOptions;
|
|
|
|
readonly compilerOptions: ts.CompilerOptions;
|
|
|
|
readonly typings: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface InstallTypingHost extends JsTyping.TypingResolutionHost {
|
|
|
|
writeFile(path: string, content: string): void;
|
2016-08-13 08:04:17 +02:00
|
|
|
createDirectory(path: string): void;
|
2016-08-12 23:01:23 +02:00
|
|
|
}
|
|
|
|
}
|