diff --git a/index.d.ts b/index.d.ts index 154bdc53..40e36202 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,13 +1,12 @@ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error -// @ts-ignore It’s important to preserve this ignore statement. This makes sure -// it works both with and without node types. -import {Buffer} from 'buffer' - import type {Reporter} from './lib/index.js' /** * This is the same as `Buffer` if node types are included, `never` otherwise. */ +// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error +// @ts-ignore It’s important to preserve this ignore statement. This makes sure +// it works both with and without node types. +// eslint-disable-next-line node/prefer-global/buffer type MaybeBuffer = any extends Buffer ? never : Buffer /**