Skip to content

Commit

Permalink
Merge pull request #6522 from wackbyte/p5-constructor-sketch-type
Browse files Browse the repository at this point in the history
type the instance parameter in the `p5` constructor
  • Loading branch information
limzykenneth authored Nov 17, 2023
2 parents 007f550 + 84b8124 commit 508b914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import * as constants from './constants';
*
* @class p5
* @constructor
* @param {function} sketch a closure that can set optional <a href="#/p5/preload">preload()</a>,
* @param {function(p5)} sketch a closure that can set optional <a href="#/p5/preload">preload()</a>,
* <a href="#/p5/setup">setup()</a>, and/or <a href="#/p5/draw">draw()</a> properties on the
* given p5 instance
* @param {HTMLElement} [node] element to attach canvas to
Expand Down

0 comments on commit 508b914

Please sign in to comment.