added type support
This commit is contained in:
1 parent
c8e576d44f
commit
d5362e71b9
11 files changed
+2409
-57
No files matched your search
Vendored
+9
@@ -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 };
|
||||
}
|
||||
}
|
||||
Vendored
-12
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user