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

Incorrect type declarations for clear() and createFramebuffer() #120

Closed
christopherball opened this issue Nov 29, 2023 · 1 comment · Fixed by processing/p5.js#6682 or processing/p5.js#6689

Comments

@christopherball
Copy link

christopherball commented Nov 29, 2023

Tested on v1.7.4

Error 1:
image
image

The p5.js implementation shows that these are optional parameters and don't need to be passed in as they default to a value of 0, so the only way around is to add // @ts-ignore statements to bypass (or unnecessarily spell out every parameter).

image

Error 2:
image
image

The p5.js implementation shows that this method returns an actual p5.Framebuffer (not void), so the only way around is to add // @ts-ignore statements to bypass.

image

@christopherball
Copy link
Author

Thanks @asukaminato0721

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 a pull request may close this issue.

2 participants