-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused
fileTypeOptions
parameter from typings
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |