Przeglądaj źródła

add type to processInfo

yohei0125 3 lat temu
rodzic
commit
73d42c3f10

+ 1 - 1
packages/app/src/server/service/page-operation.ts

@@ -86,7 +86,7 @@ class PageOperationService {
    * processInfo is the combination of actionType as key with the infomation of whether it's processable as value
    * processInfo is the combination of actionType as key with the infomation of whether it's processable as value
    */
    */
   generateProcessInfo(pageOps: PageOperationDocument[]): IPageOperationProcessInfo {
   generateProcessInfo(pageOps: PageOperationDocument[]): IPageOperationProcessInfo {
-    const processInfo = {};
+    const processInfo: IPageOperationProcessInfo = {};
 
 
     pageOps.forEach((pageOp) => {
     pageOps.forEach((pageOp) => {
       const pageId = pageOp.page._id.toString();
       const pageId = pageOp.page._id.toString();