UNPKG

phaser-jsx

Version:
16 lines (10 loc) 463 B
import type { JSX, RefObject } from 'react'; import type { Events, GameObject, RecursivePartial } from '.'; type RefCallback<Type> = (gameObject: Type) => void; interface ObjectProps<Type> extends Partial<Events> { children?: JSX.Element | JSX.Element[] | null; ref?: RefCallback<Type> | RefObject<Type | null>; } export type GameObjectProps<Type = GameObject> = ObjectProps<Type> & RecursivePartial<Type>; export type Props = Record<string, unknown>;