pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.42k stars 180 forks source link

Exported PixiReactElementProps for better typing #544

Closed LuckyOneDev closed 2 months ago

LuckyOneDev commented 2 months ago
Description of change

Exported PixiReactElementProps type for forwarding props from user-defined components. E.g.:

const Test: React.FC<PixiReactElementProps<typeof Graphics> = (props) => {
    return <graphics {...props}/>
}
Pre-Merge Checklist
codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1b257ec04d7bb3313657d9a6f1e95e7c1af9e467:

Sandbox Source
pixi.js-sandbox Configuration