moodysalem / react-tournament-bracket

React components for rendering a tournament bracket
https://moodysalem.github.io/react-tournament-bracket/
MIT License
258 stars 81 forks source link

Provide @types/react-tournament-bracket #7

Closed JSONRice closed 6 years ago

JSONRice commented 6 years ago

Please provide a @types/react-tournament-bracket module so we can do the following:

npm i @types/react-tournament-bracket

or

yarn add @types/react-tournament-bracket

That way we can apply your module to TypeScript based React-TSX files.

moodysalem commented 6 years ago

The types are included in the distribution package - you don't need a separate @types package

JSONRice commented 6 years ago

Fair enough. Is there code for that demo anywhere? Also what format does the game Parma take? Thanks.

moodysalem commented 6 years ago

The code for the demo is on gh-pages branch but uses the 0.1.x version of the code. Need to update the demo unfortunately but haven't figured out exactly how i want to do it, will probably add a demo folder to master that uses create-react-app and build to gh-pages branch.

The type for the game parameter is described in model.ts, but I want to make it flat for version 0.3 and would love a PR to change the model