Skip to content

Commit

Permalink
Remove unused fileTypeOptions parameter from typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Nov 6, 2023
1 parent 9d85f05 commit ede94d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import type {FileTypeResult, FileTypeOptions} from './core.js';
import type {FileTypeResult} from './core.js';

/**
Detect the file type of a file path.
The file type is detected by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer.
@param path - The file path to parse.
@param fileTypeOptions - Optional: An options object including the `customDetectors` property as an Iterable of Detector functions. Those are called in the order provided.
@returns The detected file type and MIME type or `undefined` when there is no match.
*/
export function fileTypeFromFile(path: string, fileTypeOptions?: FileTypeOptions): Promise<FileTypeResult | undefined>;
export function fileTypeFromFile(path: string): Promise<FileTypeResult | undefined>;

export * from './core.js';

0 comments on commit ede94d9

Please sign in to comment.