UNPKG

fix-bad-declaration-output

Version:

Do you have bad declarations? Is it too hard to fix complex tooling? (Or do you not have the time to learn how?)

15 lines (14 loc) 554 B
/** * @param {string} contents * @param {Array<(contents: string) => string | Promise<string>>} fixers */ export function applyAll(contents: string, fixers: ((contents: string) => string | Promise<string>)[]): Promise<string>; /** * @param {string} pattern */ export function getFiles(pattern: string): Promise<string[]>; /** * @param {string} filePath * @param {Array<(contents: string) => string | Promise<string>>} fixers */ export function fixFile(filePath: string, fixers: ((contents: string) => string | Promise<string>)[]): Promise<void>;