i18n 申明
This commit is contained in:
parent
2858ee55b7
commit
556cbf9728
|
|
@ -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 {}
|
||||
Loading…
Reference in New Issue