foundry-vtt-types
foundry-vtt-types copied to clipboard
Unofficial type declarations for the Foundry Virtual Tabletop API
### To Change DocumentCollection ### Kind of Change Update ### Additional Info _No response_
This is a draft PR to get data models working as they are in Foundry V11.
Added `init_windows.ps1` that checks for an occurence of `/tests/node_modules/@types/fvtt-types` and removes it if it's there, then creates a Junction from that path to root of the project, which is assumed...
Solves #2602 Would have loved to type the numeric values in the various array types to be [0..1], but unfortunately, [it's not that simple](https://github.com/microsoft/TypeScript/issues/54925).
Task list **Client** - [ ] app - [ ] #2859 - [ ] Update `av-config.js` - [ ] Update `cameras.js` - [ ] dice - [ ] #2860 -...
Solves #2614.
### Foundry VTT Version v12 ### Related Problem Need to make symlinks in windows too, right? But Windows doesn't allow for relative paths for symlinks. ### Desired Solution A powershell...
This effectively boils down to the _many_ pitfalls of TypeScript. Common issues seems to be: - Determining the right type for a plain object. Usually `Record`. - Using `InexactPartial` appropriately....
When `nullable: boolean` users must assume that when _getting_ `null` is a valid option as `nullable` may be true. When setting users must assume `nullable` may be false and therefore...