From 7bf112070806dd92b1043c0146397cedb45c9f4a Mon Sep 17 00:00:00 2001 From: Borewit Date: Tue, 30 Jul 2024 23:10:28 +0200 Subject: [PATCH] Add missing constructor type to `NodeFileTypeParser` (#651) --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index 4368765d..b080e763 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,6 +14,8 @@ export type ReadableStreamWithFileType = NodeReadableStream & { Extending `FileTypeParser` with Node.js engine specific functions. */ export declare class NodeFileTypeParser extends FileTypeParser { + constructor(options?: {customDetectors?: Iterable}); + /** @param stream - Node.js `stream.Readable` or web `ReadableStream`. */