tsafe icon indicating copy to clipboard operation
tsafe copied to clipboard

Proof of concept to IsPick util

Open deusz opened this issue 2 years ago • 2 comments

Not sure of nested examples because it is not possible to achieve with Pick util.

Do you have idea how to implement it?

Follow up on: https://github.com/garronej/tsafe/pull/15#issuecomment-1269892870

deusz avatar Oct 07 '22 16:10 deusz

I think I have basic functionality of IsPick. For my purpose I still need sth more than IsPick, because I need to check also nested props and arrays. But IsPick is a good start.

deusz avatar Oct 09 '22 10:10 deusz

Thank you for your PR!
Everything looks good to me!
I just added some simple test case that helps grasp what this is about, whould you merge: https://github.com/garronej/tsafe/pull/16

Would you go the extra mile of adding a documentation page for it? Here is the invite link.
It's realy easy to eddit. GitBook provide a "what you see is what you get" editor.

Thanks again.

garronej avatar Oct 09 '22 20:10 garronej