millsp / ts-toolbelt

👷 TypeScript's largest type utility library

Home Page:https://millsp.github.io/ts-toolbelt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create a new Object util: O.DeepPartial<MyType>

mesqueeb opened this issue · comments

🍩 Feature Request

Is your feature request related to a problem?

I always require a 'deep' Partial<> in so many situations.

Describe the solution you'd like

I'd love an official O.DeepPartial type of TS tool belt

Describe alternatives you've considered

currently it's supported but very complex to write:

O.Optional<MyDoc, keyof MyDoc, 'deep'>

a shorthand like this would be amazing:

O.DeepPartial<MyDoc>