去掉 OakI18n声明

This commit is contained in:
Wang Kejun 2022-06-20 10:41:53 +08:00
parent 12eb0ed6c5
commit 76aebf4f35
3 changed files with 3 additions and 6 deletions

View File

@ -103,7 +103,7 @@ class Token extends oak_frontend_base_1.Feature {
id: token,
}
}, 'token:getUserId');
return result[0].userId;
return result[0]?.userId;
}
}
__decorate([

View File

@ -114,6 +114,6 @@ export class Token<ED extends EntityDict, Cxt extends Context<ED>, AD extends Re
id: token!,
}
}, 'token:getUserId');
return result[0].userId;
return result[0]?.userId;
}
}

View File

@ -1,4 +1,4 @@
import { MakeOakComponent, MakeOakPage, I18nWechatMpRuntimeBase } from 'oak-frontend-base';
import { MakeOakComponent, MakeOakPage } from 'oak-frontend-base';
import { EntityDict } from 'general-app-domain';
import { GeneralRuntimeContext } from '../RuntimeContext';
import aspectDict from '../aspects';
@ -18,8 +18,5 @@ declare global {
ReturnType<typeof initialize>
>;
const generateNewId: (options?: { timestamp?: boolean }) => Promise<string>;
const OakI18n: {
i18nInstance: I18nWechatMpRuntimeBase | null;
};
}
export {}