typing(SessionManager): fetch method return cache

This commit is contained in:
Elysia
2025-07-11 23:25:13 +07:00
parent a427baa6d6
commit 9ea355a6e0
2 changed files with 10 additions and 14 deletions

4
typings/index.d.ts vendored
View File

@@ -72,7 +72,7 @@ import { AgentOptions } from 'node:https';
import { Response, ProxyAgent } from 'undici';
import { Readable, Writable, Stream } from 'node:stream';
import { MessagePort, Worker } from 'node:worker_threads';
import { authenticator } from "otplib";
import { authenticator } from 'otplib';
import { CookieJar } from 'tough-cookie';
import { RtpPacket } from 'werift-rtp';
import * as WebSocket from 'ws';
@@ -2557,7 +2557,7 @@ export class WebEmbed {
export class SessionManager extends CachedManager<string, Session, any> {
private constructor(client: Client, iterable: Iterable<any>);
public fetch(): Promise<this>;
public fetch(): Promise<Collection<string, Session>>;
public logoutAllDevices(): Promise<void>;
}