UNPKG

392 BTypeScriptView Raw
1import { CodeFixAction } from "typescript/lib/tsserverlibrary";
2export interface CodeFixRegistration {
3 errorCodes: readonly number[];
4 replaceCodeActions: (codeFixActions: readonly CodeFixAction[]) => void;
5}
6export declare const errorCodeToFixes: Map<number, Pick<CodeFixRegistration, "replaceCodeActions">[]>;
7export declare function registerCodeFix(reg: CodeFixRegistration): void;