foundry-vtt-types
foundry-vtt-types copied to clipboard
Unofficial type declarations for the Foundry Virtual Tabletop API
Context: v11 had all of the various shader classes in one long file. v12 has separated them out into one file per class.
`object` is the wrong type in 99% of cases because it includes all functions and all arrays. It has some limited usage in complex scenarios, mostly to prevent an index...
Currently, anyone using document lifecycle functions like _preCreate and checking for system properties gets errors for "x property doesn't exist on object".