Przeglądaj źródła

Improve UpdateGrantInfo type

Taichi Masuyama 3 lat temu
rodzic
commit
cde361b720
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      packages/app/src/server/service/page-grant.ts

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

@@ -37,8 +37,6 @@ type ComparableDescendants = {
 };
 
 type UpdateGrantInfo = {
-  targetPage: any,
-} & ({
   grant: typeof PageGrant.GRANT_PUBLIC,
 } | {
   grant: typeof PageGrant.GRANT_OWNER,
@@ -50,7 +48,7 @@ type UpdateGrantInfo = {
     userIds: Set<ObjectIdLike>,
     childrenOrItselfGroupIds: Set<ObjectIdLike>,
   },
-});
+};
 
 type DescendantPagesGrantInfo = {
   grantSet: Set<number>,