Skip to content

Commit

Permalink
fix: update types for extend and useExtend
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jun 15, 2024
1 parent a80247a commit ccd81d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/helpers/extend.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { catalogue } from './catalogue.js';

/** @typedef {import('../typedefs/AutoFilteredKeys.js').AutoFilteredKeys} AutoFilteredKeys */

/**
* Expose Pixi.js components for use in JSX.
*
* @param {import('../typedefs/PixiElementsImpl.js').PixiElementsImpl} objects The Pixi.js components to be exposed.
* @param {{
* [K in AutoFilteredKeys]?: typeof import('pixi.js')[K]
* }} objects The Pixi.js components to be exposed.
*/
export function extend(objects)
{
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useExtend.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { extend } from '../helpers/extend.js';
/**
* Expose Pixi.js components for use in JSX.
*
* @param {import('../typedefs/PixiElementsImpl.js').PixiElementsImpl} objects The Pixi.js components to be exposed.
* @param {Parameters<typeof extend>[0]} objects The Pixi.js components to be exposed.
*/
export function useExtend(objects)
{
Expand Down

0 comments on commit ccd81d6

Please sign in to comment.