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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user