Skip to content

Commit

Permalink
Update core.d.ts
Browse files Browse the repository at this point in the history
Simplify file type detector description

Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
Borewit and sindresorhus authored Dec 18, 2024
1 parent 4602fc7 commit 04060c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ console.log(await fileTypeFromBlob(blob));
export declare function fileTypeFromBlob(blob: Blob): Promise<FileTypeResult | undefined>;

/**
A custom detector is a function that allows specifying custom detection mechanisms.
A custom file type detector.
An array of detectors can be provided via the `fileTypeOptions` argument for the `FileTypeParser` constructor.
In Node.js, you should use `NodeFileTypeParser`, which extends `FileTypeParser` and provides access to Node.js specific functions.
Expand Down

0 comments on commit 04060c0

Please sign in to comment.