mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: typescript 5.6
This commit is contained in:
parent
a355d843ad
commit
ee135a2667
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
"typescript.tsdk": "node_modules/typescript/lib"
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,7 @@ export class LimitedCollection<K, V> {
|
|||||||
if (this.size > this.options.limit) {
|
if (this.size > this.options.limit) {
|
||||||
const iter = this.data.keys();
|
const iter = this.data.keys();
|
||||||
while (this.size > this.options.limit) {
|
while (this.size > this.options.limit) {
|
||||||
const keyValue = iter.next().value;
|
const keyValue = iter.next().value!;
|
||||||
this.delete(keyValue);
|
this.delete(keyValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,9 +143,9 @@ export class BaseInteraction<
|
|||||||
return body;
|
return body;
|
||||||
case InteractionResponseType.ChannelMessageWithSource:
|
case InteractionResponseType.ChannelMessageWithSource:
|
||||||
case InteractionResponseType.UpdateMessage: {
|
case InteractionResponseType.UpdateMessage: {
|
||||||
|
//@ts-ignore
|
||||||
return {
|
return {
|
||||||
type: body.type,
|
type: body.type,
|
||||||
//@ts-ignore
|
|
||||||
data: BaseInteraction.transformBody(body.data ?? {}, files, self),
|
data: BaseInteraction.transformBody(body.data ?? {}, files, self),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -283,7 +283,7 @@ export class WorkerManager extends Map<
|
|||||||
{
|
{
|
||||||
this.get(message.workerId)!.ready = true;
|
this.get(message.workerId)!.ready = true;
|
||||||
if ([...this.values()].every(w => w.ready)) {
|
if ([...this.values()].every(w => w.ready)) {
|
||||||
this.postMessage(this.keys().next().value, {
|
this.postMessage(this.keys().next().value!, {
|
||||||
type: 'BOT_READY',
|
type: 'BOT_READY',
|
||||||
} satisfies ManagerSendBotReady);
|
} satisfies ManagerSendBotReady);
|
||||||
this.forEach(w => {
|
this.forEach(w => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user