sindresorhus / type-fest

A collection of essential TypeScript types
Creative Commons Zero v1.0 Universal
14.19k stars 537 forks source link

Would be good to have DeepUndefinable #612

Open ShravanSunder opened 1 year ago

ShravanSunder commented 1 year ago

See https://github.com/ts-essentials/ts-essentials/tree/master/lib/deep-undefinable

is it ok to put a PR to add something like this?

Upvote & Fund

Fund with Polar

sindresorhus commented 1 year ago

Yes, makes sense to have such a type. It should be named UndefinableDeep though.

It should follow the same style as our existing deep types: https://github.com/sindresorhus/type-fest/blob/main/source/readonly-deep.d.ts