i18n 申明

This commit is contained in:
Wang Kejun 2022-06-01 10:08:23 +08:00
parent 2858ee55b7
commit 556cbf9728
1 changed files with 16 additions and 3 deletions

View File

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