foundry-vtt-types icon indicating copy to clipboard operation
foundry-vtt-types copied to clipboard

Unofficial type declarations for the Foundry Virtual Tabletop API

Results 366 foundry-vtt-types issues
Sort by recently updated
recently updated
newest added
trafficstars

Sub-properties on `CONFIG` aren't very configurable because of limitations in declaration merging. Refactor out all sub-properties that should be configurable into interfaces but keep around the defaults in case there's...

foundry v11

This probably isn't very compatible with Yarn v2's system.

foundry v11

[SWADE commit](https://gitlab.com/peginc/swade) `6ad833b517d796554e2101413081a0a92c2f4825` in `CommonActorData` This appears to be resolvable by typing `this: TheDataModel` for instance methods, but A. Can't help getters and B. raises question of why this is...

data model

The `Folders`, `FogExploration`, and `Users` collections erroneously include `SidebarTab` as an option in their results. Furthermore, it's unclear if the inclusion of `null` is correct.

bug
apps
documents
foundry v11

The `choices` parameter in NumberFieldOptions should constrain the resulting type, but it does not currently. Options for implementation 1. Replicate the handling from StringField (easier solution) 2. Find a way...

bug
data model
foundry v11

- [ ] The `darkness` field in `foundry.documents.BaseAmbientSound` is a SchemaField that is not required and can be safely initialized from a value of an explicit `undefined` or `null`, but...

bug
data model
foundry v11

With the successful implementation of data models, the old system of configuring flags appears to be broken. In general, the CONFIG file needs some love and attention and can be...

documentation
documents
foundry v11

**In which branch or foundry version does the problem occur?** main **Describe the wrong type** The types for `register` are currently not correct. The connection between the `type` property and...

bug
foundry v11

Hello, I don't know if typescript allow it but could it be possible to automatically types items of `actor.itemTypes`: When I'm accessing to types like: ```ts let weapons = itemsByType['weapon'];...

help wanted
improvement suggestion

This test suite from `tests/types/utils.test-d.ts` should all work, but it doesn't because the guarantee is stripped. ```ts declare const storedUser: StoredDocument; expectTypeOf(storedUser.id).toEqualTypeOf(); expectTypeOf(storedUser._id).toEqualTypeOf(); expectTypeOf(storedUser._source._id).toEqualTypeOf(); expectTypeOf(storedUser.toJSON()._id).toEqualTypeOf(); expectTypeOf(storedUser.toJSON()._id).toEqualTypeOf(); expectTypeOf(storedUser.toObject()._id).toEqualTypeOf(); expectTypeOf(storedUser.toObject()._id).toEqualTypeOf(); expectTypeOf(storedUser.toObject(false)._id).toEqualTypeOf(); expectTypeOf(storedUser.toObject(false)._id).toEqualTypeOf();...

bug
documents
foundry v11