mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
fix: move the Session type to Client.ts (#60)
This commit is contained in:
@@ -135,6 +135,8 @@ export type FileArgs = [
|
||||
fallback?: string,
|
||||
];
|
||||
|
||||
export type Session = { token: string };
|
||||
|
||||
export class Client extends EventEmitter {
|
||||
heartbeat: number;
|
||||
|
||||
|
||||
Vendored
-1
@@ -1,2 +1 @@
|
||||
type Tail<T extends unknown[]> = T extends [infer _A, ...infer R] ? R : never;
|
||||
type Session = { token: string };
|
||||
|
||||
@@ -8,6 +8,7 @@ import type {
|
||||
import type { Channel, Message } from "revolt-api";
|
||||
import type { Member, MemberCompositeKey, Role, Server } from "revolt-api";
|
||||
import type { RelationshipStatus, User } from "revolt-api";
|
||||
import type { Session } from "../Client";
|
||||
|
||||
type WebSocketError = {
|
||||
error:
|
||||
|
||||
Reference in New Issue
Block a user