mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-18 16:34:27 -04:00
chore: change how exports work
This commit is contained in:
@@ -66,4 +66,11 @@ client.once('ready', () => {
|
||||
|
||||
## Revolt API Types
|
||||
|
||||
All `revolt-api` types are re-exported from this library.
|
||||
All `revolt-api` types are re-exported from this library under `API`.
|
||||
|
||||
```typescript
|
||||
import { API } from 'revolt.js';
|
||||
|
||||
// API.Channel;
|
||||
// API.[..];
|
||||
```
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "module",
|
||||
"name": "revolt.js",
|
||||
"version": "6.0.0-rc.0",
|
||||
"version": "6.0.0-rc.1",
|
||||
"main": "dist/index.js",
|
||||
"repository": "https://github.com/revoltchat/revolt.js",
|
||||
"author": "Paul Makles <insrt.uk>",
|
||||
|
||||
+8
-1
@@ -1,7 +1,14 @@
|
||||
export { Channel } from "./maps/Channels";
|
||||
export { Member } from "./maps/Members";
|
||||
export { Message } from "./maps/Messages";
|
||||
export { Server } from "./maps/Servers";
|
||||
export { User } from "./maps/Users";
|
||||
|
||||
export * from "./Client";
|
||||
export * from "./config";
|
||||
export {
|
||||
UserPermission,
|
||||
Permission
|
||||
} from "./api/permissions";
|
||||
export * from "revolt-api";
|
||||
|
||||
export * as API from "revolt-api";
|
||||
|
||||
Reference in New Issue
Block a user