Explorar o código

Improve UpdateGrantInfo type

Taichi Masuyama %!s(int64=3) %!d(string=hai) anos
pai
achega
cde361b720
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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>,