mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
types(Shard): eval returns a promise resolving with T instead of T[] (#6901)
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -1746,7 +1746,7 @@ export class Shard extends EventEmitter {
|
||||
public ready: boolean;
|
||||
public worker: Worker | null;
|
||||
public eval(script: string): Promise<unknown>;
|
||||
public eval<T>(fn: (client: Client) => T): Promise<T[]>;
|
||||
public eval<T>(fn: (client: Client) => T): Promise<T>;
|
||||
public fetchClientValue(prop: string): Promise<unknown>;
|
||||
public kill(): void;
|
||||
public respawn(options?: { delay?: number; timeout?: number }): Promise<ChildProcess>;
|
||||
|
||||
Reference in New Issue
Block a user