Browse Source

types: simplify WorkingGroup enum

Mokhtar Naamani 3 years ago
parent
commit
ca4b7d778c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      types/src/common.ts

+ 1 - 4
types/src/common.ts

@@ -70,7 +70,6 @@ export class InputValidationLengthConstraint
   }
 }
 
-// Reserved keys are not part of the exported definition const, since they are not intented to be used
 export const WorkingGroupDef = {
   Storage: Null,
   Content: Null,
@@ -81,9 +80,7 @@ export const WorkingGroupDef = {
   OperationsGamma: Null,
 } as const
 export type WorkingGroupKey = keyof typeof WorkingGroupDef
-export class WorkingGroup extends JoyEnum({
-  ...WorkingGroupDef,
-}) {}
+export class WorkingGroup extends JoyEnum(WorkingGroupDef) {}
 
 // Temporarly in "common", because used both by /working-group and /content-working-group:
 export type ISlashableTerms = {