added type support

This commit is contained in:
unknown committed 2026-06-22 22:42:20 +02:00
1 parent c8e576d44f
commit d5362e71b9
11 files changed
+2409 -57

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import type { CharacterData } from "../data/character-data";
import type { ItemData } from "../data/item-data";
declare module "fvtt-types/configuration" {
interface DataModelConfig {
Actor: { character: typeof CharacterData };
Item: { item: typeof ItemData };
}
}
-12
View File
@@ -1,15 +1,3 @@
// Minimal ambient declarations for the Foundry V14 globals used by this boilerplate.
// Intentionally untyped (any) — swap for a real Foundry types package once one tracks V14.
declare const Hooks: {
once(hook: string, callback: (...args: any[]) => void): void;
on(hook: string, callback: (...args: any[]) => void): void;
};
declare const CONFIG: any;
declare const game: any;
declare const foundry: any;
declare const Actor: any;
declare const Item: any;
declare module "*.module.scss" {
const classes: { readonly [key: string]: string };
export default classes;