Skip to content

Commit bd6dbfe

Browse files
authored
add "as const" to schema change type "enum" (graphql#4572)
for consistency at this point
1 parent 75e0a18 commit bd6dbfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utilities/findSchemaChanges.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const DangerousChangeType = {
6464
OPTIONAL_ARG_ADDED: 'OPTIONAL_ARG_ADDED' as const,
6565
IMPLEMENTED_INTERFACE_ADDED: 'IMPLEMENTED_INTERFACE_ADDED' as const,
6666
ARG_DEFAULT_VALUE_CHANGE: 'ARG_DEFAULT_VALUE_CHANGE' as const,
67-
};
67+
} as const;
6868
// eslint-disable-next-line @typescript-eslint/no-redeclare
6969
export type DangerousChangeType =
7070
(typeof DangerousChangeType)[keyof typeof DangerousChangeType];
@@ -82,7 +82,7 @@ export const SafeChangeType = {
8282
FIELD_CHANGED_KIND_SAFE: 'FIELD_CHANGED_KIND_SAFE' as const,
8383
ARG_CHANGED_KIND_SAFE: 'ARG_CHANGED_KIND_SAFE' as const,
8484
ARG_DEFAULT_VALUE_ADDED: 'ARG_DEFAULT_VALUE_ADDED' as const,
85-
};
85+
} as const;
8686
// eslint-disable-next-line @typescript-eslint/no-redeclare
8787
export type SafeChangeType =
8888
(typeof SafeChangeType)[keyof typeof SafeChangeType];

0 commit comments

Comments
 (0)