@illandril/foundryvtt-types
Version:
Type definitions for the Foundry VTT client, used by Illandril's modules
13 lines (11 loc) • 368 B
TypeScript
import type { TemplateDelegate } from 'handlebars';
declare global {
namespace foundry {
namespace applications {
namespace handlebars {
const getTemplate: <T extends object>(path: string, id?: string) => Promise<TemplateDelegate<T>>;
const renderTemplate: <T extends object>(path: string, data: T) => Promise<string>;
}
}
}
}