Skip to content

Commit

Permalink
fix: allow key prop on components
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jun 28, 2024
1 parent b016ea9 commit 9db4138
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/typedefs/PixiElementsImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { NameOverrides } from '../constants/NameOverrides.js';
* [K in keyof T]: T[K] extends (...args: any) => any ? never : T[K]
* }} PixiOptionsType
*/

/** @typedef {{ key?: import('react').Key }} KeyProp */
/** @typedef {{ draw?: (graphics: Graphics) => void }} DrawCallback */

/**
Expand All @@ -45,6 +45,7 @@ import { NameOverrides } from '../constants/NameOverrides.js';
* & PropsWithRef<{ ref?: RefObject<InstanceType<PixiType[K]>> }>
* & EventHandlers
* & DrawCallback
* & KeyProp
* }} PixiElementsImpl
*/
export const PixiElementsImpl = {};

0 comments on commit 9db4138

Please sign in to comment.