@vttforge/types / FoundryApplications
Interface: FoundryApplications ​
foundry.applications.
Properties ​
api ​
readonlyapi:FoundryApplicationsApi
apps ​
readonlyapps:FoundryClassNamespace<"DocumentSheetConfig"|"FilePicker"|"ImagePopout">
fields ​
readonlyfields:Readonly<Record<string, (...args) =>HTMLElement>>
Form input builders: createFormGroup, createSelectInput and the rest.
unknown[], not never[]. A never[] rest parameter accepts no argument at all, so every real call fails with "not assignable to parameter of type 'never'".
handlebars ​
readonlyhandlebars:object
loadTemplates() ​
loadTemplates(
paths):Promise<unknown>
Warm the template cache, usually in init.
Parameters ​
paths ​
Record<string, string> | readonly string[]
Returns ​
Promise<unknown>
renderTemplate() ​
renderTemplate(
path,context):Promise<string>
Render one template with a context.
Parameters ​
path ​
string
context ​
unknown
Returns ​
Promise<string>
sheets ​
readonlysheets:FoundryClassNamespace<"ActiveEffectConfig"|"ActorSheetV2"|"ItemSheetV2"|"MacroConfig"|"SceneConfig"|"TokenConfig">
ux ​
readonlyux:Readonly<Record<"ContextMenu"|"DragDrop"|"Draggable"|"FormDataExtended"|"ProseMirrorEditor"|"SearchFilter"|"Tabs",AnyClass>> &Readonly<Record<string,AnyClass|undefined>> &object
Type Declaration ​
TextEditor ​
readonlyTextEditor:object
TextEditor.implementation ​
readonlyimplementation:TextEditorImplementation