UNPKG

narraleaf

Version:

Create your visual novel with Electron and React

16 lines (15 loc) 423 B
type AssetRuleDefinition = { include: RegExp | ((path: string) => boolean); exclude?: RegExp | ((path: string) => boolean); handler: (path: string) => AssetResolved | null; }; export type AssetResolved = { path: string; noCache: boolean; }; export declare class LocalAssets { private rules; addRule(rule: AssetRuleDefinition): this; resolve(path: string): AssetResolved | null; } export {};