typealias ManagerShardEventsMap

declare type ManagerShardEventsMap = {
    [K in keyof WebSocketShardEventsMap]: [
        WebSocketShardEventsMap[K] extends [] ? {
            shardId: number;
        } : WebSocketShardEventsMap[K][0] & {
            shardId: number;
        }
    ];
};

Union Members

{ [K in keyof WebSocketShardEventsMap]: [ WebSocketShardEventsMap[K] extends [] ? { shardId: number; } : WebSocketShardEventsMap[K][0] & { shardId: number; } ]; }