@typescript/server-replay
Version:
Replay server requests from a file
23 lines (22 loc) • 956 B
TypeScript
export interface ReplayOptions {
/** Location of directory containing repro project. */
project: string;
/** Location of file containing server request stubs. */
requests: string;
/** Location of tsserver.js. */
server: string;
/** Enable tsserver tracing and write outputs to specified directory. */
traceDir?: string;
/** Enable tsserver logging and write log to specified directory. */
logDir?: string;
/** Enable --inspect-brk on the specified port. */
inspectPort?: number;
/** Stop at the first sign of trouble and use line-oriented output. */
unattended?: boolean;
/** Replay only file opening and closing, plus the final request. */
simple?: boolean;
/** Replay only the final file opening and the final request. */
superSimple?: boolean;
}
export declare function canonicalizePath(p: string): string;
export declare function runReplay(options: ReplayOptions): Promise<void>;