Skip to content

Commit

Permalink
convert $Keys (flow) to keyof (TS)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Nov 10, 2020
1 parent 1d3ca9e commit 464cbf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/language/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type VisitFn<TAnyNode, TVisitedNode extends TAnyNode = TAnyNode> = (
*/
export type VisitorKeyMap<KindToNode> = $ObjMap<
KindToNode,
<T>(T) => ReadonlyArray<$Keys<T>>,
<T>(T) => ReadonlyArray<keyof T>,
>;

export const QueryDocumentKeys: VisitorKeyMap<ASTKindToNode> = {
Expand Down
4 changes: 2 additions & 2 deletions src/utilities/findBreakingChanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export const DangerousChangeType = Object.freeze({
});

export type BreakingChange = {
type: $Keys<typeof BreakingChangeType>,
type: keyof typeof BreakingChangeType,
description: string,
};

export type DangerousChange = {
type: $Keys<typeof DangerousChangeType>,
type: keyof typeof DangerousChangeType,
description: string,
};

Expand Down

0 comments on commit 464cbf3

Please sign in to comment.