|
|
@@ -7,5 +7,9 @@ export const PageActionType = {
|
|
|
NormalizeParent: 'NormalizeParent',
|
|
|
} as const;
|
|
|
export type PageActionType = typeof PageActionType[keyof typeof PageActionType]
|
|
|
-export type IPageOperationProcessData = Partial<Record<PageActionType, {isProcessing: boolean}>>
|
|
|
-export type IPageOperationProcessInfo = Partial<Record<string, IPageOperationProcessData>>
|
|
|
+export type IPageOperationProcessData = Partial<{
|
|
|
+ [key in PageActionType]: {isProcessable: boolean}
|
|
|
+}>
|
|
|
+export type IPageOperationProcessInfo = {
|
|
|
+ [pageId: string]: IPageOperationProcessData,
|
|
|
+}
|