Interface: FormatDetectionParser

FormatDetectionParser

Format detection is useful for detecting feature support on the current platform.

Properties:
Name Type Description
add (formats: string[]) => Promise<string[]>

Add formats (file extensions) to the existing list of formats. Return an new array with added formats, do not mutate the formats argument.

extension ExtensionMetadata

Should be ExtensionType.DetectionParser

remove (formats: string[]) => Promise<string[]>

Remove formats (file extensions) from the list of supported formats. This is used when uninstalling this DetectionParser. Return an new array with filtered formats, do not mutate the formats argument.

test () => Promise<boolean>

Browser/platform feature detection supported if return true

Members

add (formats: string[]) => Promise<string[]>

Add formats (file extensions) to the existing list of formats. Return an new array with added formats, do not mutate the formats argument.

extension ExtensionMetadata

Should be ExtensionType.DetectionParser

remove (formats: string[]) => Promise<string[]>

Remove formats (file extensions) from the list of supported formats. This is used when uninstalling this DetectionParser. Return an new array with filtered formats, do not mutate the formats argument.

test () => Promise<boolean>

Browser/platform feature detection supported if return true