Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting more types & interfaces #926

Closed
SaFrMo opened this issue Apr 5, 2021 · 2 comments
Closed

Exporting more types & interfaces #926

SaFrMo opened this issue Apr 5, 2021 · 2 comments

Comments

@SaFrMo
Copy link
Contributor

SaFrMo commented Apr 5, 2021

I'd like to use the PhaseMap type in my project but am running into this error when trying to import: Module '"boardgame.io"' declares 'PhaseMap' locally, but it is not exported.ts(2459)

Is there some other way I should be doing this? I'm looking to define the phases property for a Game object and it looks like PhaseMap should be the way to go, but I can switch to something else if needed.

I looked in the types file and found a couple more that weren't exported, so I put together a quick branch here to resolve. Happy to submit a PR if this is a useful addition. Thanks for the excellent work!

@delucis
Copy link
Member

delucis commented Apr 7, 2021

@SaFrMo Sure! A PR for this would be good.

@SaFrMo SaFrMo mentioned this issue Apr 7, 2021
2 tasks
@delucis
Copy link
Member

delucis commented Apr 7, 2021

Closed in #927

@delucis delucis closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants