• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1declare namespace ts.server {
2    export interface CompressedData {
3        length: number;
4        compressionKind: string;
5        data: any;
6    }
7
8    export type RequireResult = { module: {}, error: undefined } | { module: undefined, error: { stack?: string, message?: string } };
9    export interface ServerHost extends System {
10        watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
11        watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
12        setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
13        clearTimeout(timeoutId: any): void;
14        setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
15        clearImmediate(timeoutId: any): void;
16        gc?(): void;
17        trace?(s: string): void;
18        require?(initialPath: string, moduleName: string): RequireResult;
19        getTagNameNeededCheckByFile?(containFilePath: string, sourceFilePath: string): TagCheckParam;
20        getExpressionCheckedResultsByFile?(filePath: string, jsDocs: JSDocTagInfo[]): ConditionCheckResult;
21    }
22}
23