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:
parent
7067615da7
commit
8ea1c82de8
2 changed files with 16 additions and 0 deletions
3
foundry-augments.d.ts
vendored
Normal file
3
foundry-augments.d.ts
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
interface Game {
|
||||
readonly settings: ClientSettings;
|
||||
}
|
||||
13
jsconfig.json
Normal file
13
jsconfig.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"checkJs": true,
|
||||
"target": "ES6",
|
||||
"types": [
|
||||
"./foundry-augments.d.ts"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"./module/**/*",
|
||||
"foundry.js"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue