chore: migrate jest-validate to TypeScript - #7991
Conversation
6624022 to
1cbc3fd
Compare
1cbc3fd to
55e7ed8
Compare
|
|
||
| const initialOptions: Config.InitialOptions = { | ||
| automock: false, | ||
| // @ts-ignore TODO: type this properly |
There was a problem hiding this comment.
@jeysal do you know how to type this? Essentially, the return-type should be one a union of the types of all arguments
There was a problem hiding this comment.
Not sure I understand, wouldn't that typing be a lie? multipleValidOptions doesn't return one of the argument (in that case the return type would be the union of them), but an array of all of them.
|
|
||
| // @ts-ignore: not the same arguments | ||
| // @ts-ignore: fix this at some point | ||
| validateCLIOptions(argv, {...args.options, deprecationEntries}); |
There was a problem hiding this comment.
This error here is nuts, I gave up :p
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This is not good enough for external consumers of
jest-validate, but it works for our internal usage, which is better than nothing 🙂 Help making it better is greatly appreciated!Built diff:
Details
Test plan
Green CI