Skip to content

Commit 8440f19

Browse files
committed
add types
1 parent 1b0de26 commit 8440f19

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "WebGPU for node",
55
"main": "index.js",
66
"type": "module",
7+
"types": "types.d.ts",
78
"scripts": {
89
"build": "node build/build.js",
910
"test": "node test/test.js",
@@ -25,10 +26,14 @@
2526
"homepage": "https://github.com/greggman/node-webgpu#readme",
2627
"files": [
2728
"dist/**/*",
28-
"index.js"
29+
"index.js",
30+
"types.d.ts"
2931
],
3032
"devDependencies": {
3133
"debug": "^4.4.0",
3234
"mocha": "^11.0.1"
35+
},
36+
"dependencies": {
37+
"@webgpu/types": "^0.1.53"
3338
}
3439
}

types.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '@webgpu/types';
2+
declare function create(options: string[]): GPU;

0 commit comments

Comments
 (0)