Skip to content

Update README for TypeScript v6 and v7 instructions#204

Merged
kainino0x merged 1 commit into
gpuweb:mainfrom
toji:dom-note
Jul 13, 2026
Merged

Update README for TypeScript v6 and v7 instructions#204
kainino0x merged 1 commit into
gpuweb:mainfrom
toji:dom-note

Conversation

@toji

@toji toji commented Jul 13, 2026

Copy link
Copy Markdown
Member

Adds some instructions for how to best get WebGPU types with TypeScript v6 and v7, including how to work around the incomplete types included in some versions of the "dom" library.

Adds some instructions for how to best get WebGPU types with
TypeScript v6 and v7, including how to work around the incomplete
types included in some versions of the `"dom"` library.
@toji
toji requested a review from kainino0x July 13, 2026 20:27

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, easier fix than I expected!

@kainino0x
kainino0x merged commit 9ba8a06 into gpuweb:main Jul 13, 2026
1 check passed
@toji
toji deleted the dom-note branch July 13, 2026 20:31
@Zosoled

Zosoled commented Jul 16, 2026

Copy link
Copy Markdown

@toji The new instructions did not actually work for me. I ended up following the instructions in the @types/web README and am now using the following snippets:

package.json

"devDependencies": {
	"@types/node": "^26.1.1",
	"@typescript/lib-dom": "npm:@types/web@^0.0.352",
	"typescript": "^7.0.2"
}

tsconfig.json

"types": [
	"node"
],
"libReplacement": true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants