Skip to content

Commit

Permalink
Correct typing option signal to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Nov 23, 2024
1 parent 4927fae commit f6fac5f
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 @@ -493,7 +493,7 @@ export function fileTypeStream(webStream: AnyWebReadableStream<Uint8Array>, opti
export declare class FileTypeParser {
detectors: Iterable<Detector>;

constructor(options?: {customDetectors?: Iterable<Detector>; signal: AbortSignal});
constructor(options?: {customDetectors?: Iterable<Detector>; signal?: AbortSignal});

/**
Works the same way as {@link fileTypeFromBuffer}, additionally taking into account custom detectors (if any were provided to the constructor).
Expand Down

0 comments on commit f6fac5f

Please sign in to comment.