The name of the filetype
OptionalmimeTypes: string[]Mimetypes for recognising the file type
Optionalextensions: string[]File extensions for recognising the file type
OptionalcustomMatch: ((type: string) => boolean)Custom logic to match the mimetype of the file
Optional ReadonlyextensionsFile extensions for recognising the file type
Optional ReadonlymimeMimetypes for recognising the file type
ReadonlynameThe name of the filetype
Checks if a file is a match
The file to check against
Checks if a file is a match based on the filename and mimetype
The filename of the file
The mimetype of the file
A class that defined a custom file type as well as the logic to recognise it