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

type the instance parameter in the p5 constructor #6522

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

wackbyte
Copy link
Contributor

@wackbyte wackbyte commented Nov 2, 2023

Changes:

Adds a type annotation for the parameter of the sketch callback of the p5 constructor.
The previous type was function(...args: any[]): any, and this changes it to be function(p1: p5): any, annotating that it takes a p5 instance.

PR Checklist

Copy link

welcome bot commented Nov 2, 2023

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. And be sure to add yourself to the list of contributors on the readme page!

@limzykenneth limzykenneth merged commit 508b914 into processing:main Nov 17, 2023
2 checks passed
@limzykenneth
Copy link
Member

Looks good. Thanks!

@wackbyte wackbyte deleted the p5-constructor-sketch-type branch November 18, 2023 00:38
@wackbyte
Copy link
Contributor Author

Thank you!

@all-contributors please add @wackbyte for doc

Copy link
Contributor

@wackbyte

I've put up a pull request to add @wackbyte! 🎉

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.

2 participants