-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: types not building correctly #10165
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b17786b:
|
} | ||
|
||
/** | ||
* For whatever reason when we build the types we get /// <reference types="dist" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to know why this is happening. TS bug or are we implementing something incorrectly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree! do we have any idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I currently have no idea what is causing this, but will add a ticket to look into it some more
Co-authored-by: Matt Karl <matt@mattkarl.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
For whatever reason when we build the types we get
/// <reference types="dist" />
This is not what we want, we want
/// <reference types="@webgpu/types" />
So i wrote a little script just to replace this out
Also we needed to copy over our
Shader.d.ts
file which defines frag,vert,wgsl files