Skip to content

Commit e3cd073

Browse files
committed
convert $Keys (flow) to keyof (TS)
1 parent 9b9960c commit e3cd073

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/language/visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export type VisitFn<TAnyNode, TVisitedNode extends TAnyNode = TAnyNode> = (
4444
*/
4545
export type VisitorKeyMap<KindToNode> = $ObjMap<
4646
KindToNode,
47-
<T>(T) => ReadonlyArray<$Keys<T>>,
47+
<T>(T) => ReadonlyArray<keyof T>,
4848
>;
4949

5050
export const QueryDocumentKeys: VisitorKeyMap<ASTKindToNode> = {

src/utilities/findBreakingChanges.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ export const DangerousChangeType = Object.freeze({
6565
});
6666

6767
export type BreakingChange = {
68-
type: $Keys<typeof BreakingChangeType>,
68+
type: keyof typeof BreakingChangeType,
6969
description: string,
7070
};
7171

7272
export type DangerousChange = {
73-
type: $Keys<typeof DangerousChangeType>,
73+
type: keyof typeof DangerousChangeType,
7474
description: string,
7575
};
7676

0 commit comments

Comments
 (0)