Write the lib in typescript #775
sschneider-ihre-pvs
started this conversation in
Ideas
Replies: 2 comments
-
Yes, rewrite is on the cards now since Radashi and Remeda are also build in TS. As for your example - I will investigate it and get back to you. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I check your example and it looks as expected
Not sure what you expect the result to be, so please comment to better understand the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The rewrite of the lib regarding type safety is rather bumpy, maybe it would be better to write it in typescript.
example
omit
I tried to simplify this since I am working with opaque types. This should result in a typeerror because foo does not fit in
Partial<Record
and so on. the below version correctly returns the typeOmit<foo, 'a'>
Beta Was this translation helpful? Give feedback.
All reactions