types: add missing shard types (v13) (#8192)

This commit is contained in:
Almeida
2022-06-29 23:35:51 +01:00
committed by GitHub
parent 125696fc79
commit 079973f1cf
3 changed files with 9 additions and 3 deletions

View File

@@ -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;