Skip to content

Commit

Permalink
[] => never[], as empty tuple is invalid in TS@2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Aug 22, 2019
1 parent c10a670 commit d9a51df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tstypes/language/visitor.d.ts
Expand Up @@ -52,7 +52,7 @@ export type VisitFn<TAnyNode, TVisitedNode = TAnyNode> = (
export type VisitorKeyMap<T> = { [P in keyof T]: ReadonlyArray<keyof T[P]> };

export const QueryDocumentKeys: {
Name: [];
Name: never[]; // Should be empty tuple, but that requires TypeScript@3

Document: ['definitions'];
// Prettier forces trailing commas, but TS pre 3.2 doesn't allow them.
Expand Down Expand Up @@ -82,12 +82,12 @@ export const QueryDocumentKeys: {
'selectionSet'
];

IntValue: [];
FloatValue: [];
StringValue: [];
BooleanValue: [];
NullValue: [];
EnumValue: [];
IntValue: never[]; // Should be empty tuple, but that requires TypeScript@3
FloatValue: never[]; // Should be empty tuple, but that requires TypeScript@3
StringValue: never[]; // Should be empty tuple, but that requires TypeScript@3
BooleanValue: never[]; // Should be empty tuple, but that requires TypeScript@3
NullValue: never[]; // Should be empty tuple, but that requires TypeScript@3
EnumValue: never[]; // Should be empty tuple, but that requires TypeScript@3
ListValue: ['values'];
ObjectValue: ['fields'];
ObjectField: ['name', 'value'];
Expand Down

0 comments on commit d9a51df

Please sign in to comment.