Skip to content

Commit 938cb8b

Browse files
authored
Merge pull request #8700 from LalitNarayanYadav/fix/setup-async-return-type
fix: allow setup() to return Promise<void> for async workflows
2 parents fa1fe4c + 43320ae commit 938cb8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ export default p5;
673673
*
674674
* @method setup
675675
* @for p5
676+
* @return {void|Promise<void>}
676677
*
677678
* @example
678679
* function setup() {

0 commit comments

Comments
 (0)