Skip to content

Commit

Permalink
Fix mergerino types and tests in preparation for TS DefinitelyTyped#3…
Browse files Browse the repository at this point in the history
…4742 (DefinitelyTyped#39924)

* Fix mergerino types and tests in preparation for TS DefinitelyTyped#34742

* Preserve type annotation for TS versions before 3.5

* Revert change to FunctionPatch<T> and fix test accordingly
  • Loading branch information
ahejlsberg authored Oct 31, 2019
1 parent 1bf8b34 commit 853958c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/mergerino/mergerino-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function multiArrayFalsyPatches() {
0,
null,
(s, m) => m(s, { age: 10 }),
[[[[[[[{ age: (x: number) => x * 3 }]]]]]]],
[[[[{ age: (x?: number) => (x || 0) * 3 }]]]],
);
}

Expand Down

0 comments on commit 853958c

Please sign in to comment.