Skip to content
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

add types in the npm package output #247

Closed
GrandSchtroumpf opened this issue Jun 28, 2022 · 1 comment
Closed

add types in the npm package output #247

GrandSchtroumpf opened this issue Jun 28, 2022 · 1 comment

Comments

@GrandSchtroumpf
Copy link
Contributor

Currently @rive-app/canvas-advanced & @rive-app/webgl-advanced do not provide type definition.
Would be nice to include these types into the output folder & update the package.json.

Note: the OffscreenCanvas is not supported by Typescript by default anymore (see issue). You can either remove it or add a polyfill to avoid user compiler from breaking.

Thanks.

@zplata
Copy link
Contributor

zplata commented Jul 12, 2022

@GrandSchtroumpf We just merged support for types! I'd try with @rive-app/canvas-advanced over WebGL for best performance right now and support. And appreciate the tip about OffscreenCanvas, we included a types for that in this latest release 1.0.70!

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

No branches or pull requests

3 participants