diff --git a/apps/oxlint/src-js/plugins/fix.ts b/apps/oxlint/src-js/plugins/fix.ts index b2a7ea738b0db..2180298716cad 100644 --- a/apps/oxlint/src-js/plugins/fix.ts +++ b/apps/oxlint/src-js/plugins/fix.ts @@ -10,7 +10,7 @@ const { prototype: ArrayPrototype, from: ArrayFrom } = Array, // Type of `fix` function. // `fix` can return a single fix, an array of fixes, or any iterator that yields fixes. // e.g. `(function*() { yield fix1; yield fix2; })()` -export type FixFn = (fixer: typeof FIXER) => Fix | Array | IterableIterator | null; +export type FixFn = (fixer: Fixer) => Fix | Array | IterableIterator | null; // Type of a fix, as returned by `fix` function. export type Fix = { range: Range; text: string }; @@ -58,6 +58,8 @@ const FIXER = Object.freeze({ }, }); +type Fixer = typeof FIXER; + /** * Get fixes from a `Diagnostic`. *