-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use submodules instead of exported namespaces in
@wuespace/telestion
(
#416) Previously, anything that wasn't exported on the root level of the `@wuespace/telestion` library had to be imported indirectly through namespaces: ```ts import { utils } from '@wuespace/telestion'; const { wait } = utils; ``` This didn't provide a great developer experience, as imports couldn't be reoslved automatically. Instead, these features now must be imported using submodules / path imports: ```ts import { wait } from '@wuespace/telestion/utils'; ``` As of the time of this change, a total of six of these modules exist: - `@wuespace/telestion/application`, corresponding to `import { application } from '@wuespace/telestion'` - `@wuespace/telestion/auth`, corresponding to `import { auth } from '@wuespace/telestion'` - `@wuespace/telestion/nats`, corresponding to `import { nats } from '@wuespace/telestion'` - `@wuespace/telestion/user-data`, corresponding to `import { userData } from '@wuespace/telestion'` - `@wuespace/telestion/utils`, corresponding to `import { utils } from '@wuespace/telestion'` - `@wuespace/telestion/widget`, corresponding to `import { widget } from '@wuespace/telestion'` The previous namespaces were removed.
- Loading branch information
Showing
33 changed files
with
432 additions
and
93 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.