-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix client types & move BoardProps to React package (#752)
* refactor(packages): Expose BoardProps type via 'boardgame.io/react' BoardProps depends on some types from `@types/react`, which won’t be installed for TS users not using React, so exporting it from the top-level `'boardgame.io'` module causes errors for those users. * refactor(client): Structure debug types to output a .d.ts file This places the Svelte Debug component type definition in an index.ts alongside the index.js that re-exports the Svelte component. * Revert "refactor(client): Structure debug types to output a .d.ts file" This reverts commit e8f0735. * refactor(client): Add svelte types to tsconfig, typing `.svelte` files * refactor(packages): Convert debug package to TS * feat(types): Hoist ambient declaration in main types file * chore(deps): Make Svelte a dependency For TS users, Svelte needs to be installed so its ambient types can be used. * build(tsconfig): Remove `types` field Now the Svelte types are imported in `src/types.ts`, we don’t need to tell `tsc` about them in `tsconfig`.
- Loading branch information
Showing
9 changed files
with
16 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters