Skip to content

Commit

Permalink
Update core.d.ts
Browse files Browse the repository at this point in the history
Improve file-type detectors array description

Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
Borewit and sindresorhus authored Dec 18, 2024
1 parent 04060c0 commit fee4cae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ export function fileTypeStream(webStream: AnyWebReadableStream<Uint8Array>, opti

export declare class FileTypeParser {
/**
File-type detectors, initialized with a single entry holding the build in detector function.
The array is used to iterate over all detectors, as long as the function returns `undefined`.
File type detectors.

Check failure on line 188 in core.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 22

Trailing spaces not allowed.

Check failure on line 188 in core.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

Trailing spaces not allowed.

Check failure on line 188 in core.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

Trailing spaces not allowed.
Initialized with a single entry holding the built-in detector function.
*/
detectors: Detector[];

Expand Down

0 comments on commit fee4cae

Please sign in to comment.