League of Extraordinary FoundryVTT Developers

LOE

League of Extraordinary FoundryVTT Developers

Join the community to ask questions about League of Extraordinary FoundryVTT Developers and get answers from other members.

Join

commissions

package-development

system-development

other-topics

workgroups

development

package-ideas

package-compatibility

pixijs-canvas-shaders

progress-reports

dev-guides-and-docs

ui-ux-sheets-forms

hooks

development-basics

manifest-plus

tools-and-workflow

active-effects

wiki

dnd5e-dev

package-stewardship

swade-dev

typescript

starfinder-dev

lancer-dev

pathfinder1e-dev

foundryvtt-v10-research

coc7-dev

a5e-dev

v10-updatathon

svnsea2e-dev

package-jam-2022

blackflag-dev

api-announcements

Lowkey been trying to create a module

Lowkey been trying to create a module with the Foundry types but keep funning into issues. Either my tsconfig is never set up right, or when it finally is, then none of my types actually register as types within my project and create build errors (unless I force it to reference things with /// <reference types="fvtt-types" /> directive at the top of every single .ts file, but that's just kinda really annoying to have to do) Been bashing my head trying to get the setup for this right for the last couple days and I keep going in circles and dunno what Im really doing wrong here if anyone can help. Attatched tsconfig for reference...

This distinction apparently doesn't

This distinction apparently doesn't matter. new Document accepts DataModel explicitly because new DataModel does; ```ts _initializeSource(data, options={}) { if ( data instanceof DataModel ) data = data.toObject();...

TS Playground - An online editor for exp...

Here's a different version in a playground link Honestly I started with a simpler model of "what a mixin is" because I knew that it'd probably actually decrease in readability rapidly, and indeed it did....