Files
Atay-Makhzan/web_src/js/render/plugin.ts
T

11 lines
298 B
TypeScript
Raw Normal View History

export type FileRenderPlugin = {
// unique plugin name
name: string;
// test if plugin can handle a specified file
canHandle: (filename: string, mimeType: string) => boolean;
// render file content
render: (container: HTMLElement, fileUrl: string, options?: any) => Promise<void>;
2025-09-14 18:15:06 +02:00
};