Skip to content

Commit

Permalink
fix: update function signature type for draw
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jun 15, 2024
1 parent fa3ceb9 commit 5ba3bcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/typedefs/Instance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @typedef {import('pixi.js').Graphics} Graphics */

/** @typedef {import('./ContainerElement.js').ContainerElement} ContainerElement */
/** @typedef {import('./EventHandlers.js').EventHandlers} EventHandlers */
/** @typedef {import('./InstanceState.js').InstanceState} InstanceState */
Expand All @@ -7,7 +9,7 @@
* @property {InstanceState} [__pixireact]
* @property {boolean} [autoRemovedBeforeAppend]
* @property {ContainerElement | ContainerElement[]} [children]
* @property {(...args: any[]) => any} [draw]
* @property {(graphics: Graphics) => void} [draw]
*/

/** @typedef {ContainerElement & BaseInstance} Instance */
Expand Down

0 comments on commit 5ba3bcc

Please sign in to comment.