UNPKG

ts-patch

Version:

Patch typescript to support custom transformers in tsconfig.json

41 lines (40 loc) 1.16 kB
export declare class TspError extends Error { } export declare class WrongTSVersion extends TspError { name: string; } export declare class FileNotFound extends TspError { name: string; } export declare class PackageError extends TspError { name: string; } export type PatchErrorCode = 'PATCH_TARGET_UNSUPPORTED' | 'UNKNOWN_MODULE' | 'TS_VERSION_UNSUPPORTED'; export declare class PatchError extends TspError { name: string; code?: PatchErrorCode; constructor(message: string, opts?: { code?: PatchErrorCode; }); } export declare class PersistenceError extends TspError { name: string; } export declare class OptionsError extends TspError { name: string; } export declare class NPMError extends TspError { name: string; } export declare class RestoreError extends TspError { filename: string; constructor(filename: string, message: string); } export declare class BackupError extends TspError { filename: string; constructor(filename: string, message: string); } export declare class FileWriteError extends TspError { filename: string; constructor(filename: string, message?: string); }