Skip to content

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

Name Type Required Description
matchesExtension (file: FileEntry, extensions: string[]) => boolean yes -
matchesMime (file: FileEntry, mimeTypes: string[]) => boolean yes -
matchesCategory (file: FileEntry, categories: FileCategory[]) => boolean yes -

This article includes AI-assisted content.

Documentation is licensed under CC BY 4.0. Phoundry names and marks remain reserved.