Add proper support for the TS language server to be able to have proper type checking because of the way Foundry sets some properties

This commit is contained in:
Oliver-Akins 2024-02-06 21:57:13 -07:00
parent 7067615da7
commit 8ea1c82de8
2 changed files with 16 additions and 0 deletions

3
foundry-augments.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
interface Game {
readonly settings: ClientSettings;
}

13
jsconfig.json Normal file
View file

@ -0,0 +1,13 @@
{
"compilerOptions": {
"checkJs": true,
"target": "ES6",
"types": [
"./foundry-augments.d.ts"
]
},
"include": [
"./module/**/*",
"foundry.js"
]
}