mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
types: add missing shard types (v13) (#8192)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { ChildProcess } from 'child_process';
|
||||
import type { Worker } from 'worker_threads';
|
||||
import type {
|
||||
APIInteractionGuildMember,
|
||||
APIMessage,
|
||||
@@ -1191,7 +1192,7 @@ client.on('interactionCreate', async interaction => {
|
||||
declare const shard: Shard;
|
||||
|
||||
shard.on('death', process => {
|
||||
expectType<ChildProcess>(process);
|
||||
expectType<ChildProcess | Worker>(process);
|
||||
});
|
||||
|
||||
declare const webSocketShard: WebSocketShard;
|
||||
|
||||
Reference in New Issue
Block a user