Skip to content

Commit

Permalink
convert {...} (flow) to { } (TS)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Oct 27, 2020
1 parent eaa792f commit ae7c3f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/jsutils/memoize3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Memoizes the provided three-argument function.
*/
export default function memoize3<
A1: { ... } | ReadonlyArray<unknown>,
A2: { ... } | ReadonlyArray<unknown>,
A3: { ... } | ReadonlyArray<unknown>,
R: unknown,
>(fn: (A1, A2, A3) => R): (A1, A2, A3) => R {
A1 extends { } | ReadonlyArray<unknown>,
A2 extends { } | ReadonlyArray<unknown>,
A3 extends { } | ReadonlyArray<unknown>,
R extends unknown,
>( fn: (a1: A1, a2: A2, a3: A3) => R): (a1: A1, a2: A2, a3: A3) => R {

This comment has been minimized.

Copy link
@IvanGoncharov

IvanGoncharov Oct 27, 2020

as discussed in Slack it should be object

This comment has been minimized.

Copy link
@saihaj

saihaj Oct 27, 2020

Author Owner
let cache0;

return function memoized(a1, a2, a3) {
Expand Down
2 changes: 1 addition & 1 deletion src/language/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const QueryDocumentKeys: VisitorKeyMap<ASTKindToNode> = {
InputObjectTypeExtension: ['name', 'directives', 'fields'],
};

export const BREAK: { ... } = Object.freeze({});
export const BREAK: { } = Object.freeze({});

/**
* visit() will walk through an AST using a depth-first traversal, calling
Expand Down

0 comments on commit ae7c3f4

Please sign in to comment.