Przeglądaj źródła

add new type IPageOperationProcessInfo to page interface

yohei0125 3 lat temu
rodzic
commit
a439a3cafa
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      packages/app/src/interfaces/page.ts

+ 3 - 0
packages/app/src/interfaces/page.ts

@@ -1,5 +1,6 @@
 import { Ref, Nullable } from './common';
 import { HasObjectId } from './has-object-id';
+import { IPageActionType } from './page-operation';
 import { IRevision, HasRevisionShortbody } from './revision';
 import { SubscriptionStatusType } from './subscription';
 import { ITag } from './tag';
@@ -34,6 +35,8 @@ export interface IPage {
 
 export type IPageHasId = IPage & HasObjectId;
 
+export type IPageOperationProcessInfo = Partial<Record<IPageActionType, {isProcessing: boolean}>>
+
 export type IPageForItem = Partial<IPageHasId & {isTarget?: boolean}>;
 
 export type IPageInfo = {