Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

FileMatchAPI

Since Plugin API: 1.0.0

File matching API for canHandle callbacks

Signature

interface FileMatchAPI {
    matchesExtension(file: FileEntry, extensions: string[]): boolean;
    matchesMime(file: FileEntry, mimeTypes: string[]): boolean;
    matchesCategory(file: FileEntry, categories: FileCategory[]): boolean;
}

Members

NameTypeRequiredDescription
matchesExtension(file:FileEntry, extensions: string[]) => booleanyes-
matchesMime(file:FileEntry, mimeTypes: string[]) => booleanyes-
matchesCategory(file:FileEntry, categories:FileCategory[]) => booleanyes-