ruoyi-plus-soybean/packages/scripts/typings/pkg.d.ts
2023-11-17 10:25:32 +08:00

16 lines
356 B
TypeScript

declare module 'lint-staged' {
interface LintStagedOptions {
config?: Record<string, string | string[]>;
allowEmpty?: boolean;
}
type LintStagedFn = (options: LintStagedOptions) => Promise<boolean>;
interface LintStaged extends LintStagedFn {
default: LintStagedFn;
}
const lintStaged: LintStaged;
export default lintStaged;
}