1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-29 08:34:36 +02:00

Update engineControllerBase.ts

This commit is contained in:
syuilo
2026-05-14 14:38:59 +09:00
parent bfdda83a6d
commit 8f23991723

View File

@@ -313,8 +313,7 @@ export abstract class EngineControllerBase<T extends RoomEngineBase> {
}
}
// TODO: いい感じに型付け
protected set(key, value) {
protected set<K extends keyof T>(key: K, value: T[K]) {
if (!this.isReady.value) {
throw new Error('Engine is not initialized');
}