foundry-vtt-types
foundry-vtt-types copied to clipboard
Put together a more thorough CONTRIBUTING guide
trafficstars
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<string, unknown>. - Using
InexactPartialappropriately. - Not writing
foo?: T | undefinedin function signatures; only for object properties does the distinction betweenfoo?: Tandfoo?: T | undefinedmatter. - Writing effective tests.
- The process of diffing versions.
- Getting started with the helper types.
- etc.
Ideally if lints could be find for these it'd ease the burden into becoming more automated.