From 84b81240904358bd586870ac951a2f888f01538d Mon Sep 17 00:00:00 2001 From: wackbyte Date: Thu, 2 Nov 2023 16:11:51 -0400 Subject: [PATCH] type the instance parameter in the `p5` constructor --- src/core/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/main.js b/src/core/main.js index 2e62bc661f..dd61bb6862 100644 --- a/src/core/main.js +++ b/src/core/main.js @@ -26,7 +26,7 @@ import * as constants from './constants'; * * @class p5 * @constructor - * @param {function} sketch a closure that can set optional preload(), + * @param {function(p5)} sketch a closure that can set optional preload(), * setup(), and/or draw() properties on the * given p5 instance * @param {HTMLElement} [node] element to attach canvas to