fix: move the Session type to Client.ts (#60)

This commit is contained in:
Sophie L
2022-11-09 22:04:56 +00:00
committed by GitHub
parent ecd58f0d7f
commit f3ab4a6966
3 changed files with 3 additions and 1 deletions
+2
View File
@@ -135,6 +135,8 @@ export type FileArgs = [
fallback?: string,
];
export type Session = { token: string };
export class Client extends EventEmitter {
heartbeat: number;
-1
View File
@@ -1,2 +1 @@
type Tail<T extends unknown[]> = T extends [infer _A, ...infer R] ? R : never;
type Session = { token: string };
+1
View File
@@ -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: