Skip to content

Commit

Permalink
install webgpu typescript type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Sep 13, 2022
1 parent ed35262 commit 3fb2712
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions js/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@types/mocha": "^8.2.2",
"@types/npmlog": "^4.1.2",
"@types/platform": "^1.3.3",
"@webgpu/types": "^0.1.10",
"base64-js": "^1.5.1",
"chai": "^4.3.4",
"dir-compare": "^3.3.0",
Expand Down
3 changes: 2 additions & 1 deletion js/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"module": "CommonJS",
"downlevelIteration": true,
"declarationDir": "./types",
"lib": ["DOM"]
"lib": ["DOM"],
"typeRoots": ["./node_modules/@webgpu/types", "./node_modules/@types"]
},
"include": ["lib", "script", "test"],
"exclude": ["lib/wasm/proxy-worker"]
Expand Down

0 comments on commit 3fb2712

Please sign in to comment.