fix(09-05): adapt IUIController/UIController to required IGameUIPropsBase generic

- add <IGameUIPropsBase> to 16 IUIController annotation sites (client-modules + client-base)
This commit is contained in:
AncTe committed 2026-10-10 14:14:12 +08:00
1 parent 1bcdcc3677
commit 3a49b37c25
10 files changed
+29 -23

No files matched your search

@@ -1,3 +1,4 @@
import { UIController } from '@motajs/system';
import { IGameUIPropsBase } from '@user/client-base';
export const sceneController = new UIController('main-scene');
export const sceneController = new UIController<IGameUIPropsBase>();
@@ -1,5 +1,5 @@
import { compressToBase64, decompressFromBase64 } from 'lz-string';
import { getConfirm, waitbox } from '@user/client-base';
import { getConfirm, waitbox, IGameUIPropsBase } from '@user/client-base';
import { IUIController } from '@motajs/system';
import { SyncSaveFromServerResponse } from '@motajs/client-base';
import { CENTER_LOC, POP_BOX_WIDTH } from '../../shared';
@@ -122,7 +122,7 @@ async function syncLoad(id: string, password: string) {
}
export async function syncFromServer(
controller: IUIController,
controller: IUIController<IGameUIPropsBase>,
identifier: string
): Promise<void> {
if (!/^\d{6}\w{4}$/.test(identifier) && !/^\d{4}\w{3}$/.test(identifier)) {