Make all fields of O optional (deeply or not)
O
to make optional
(?='flat') 'deep' to do it deeply
'flat'
Object
import {O} from 'ts-toolbelt' type L = {a: {b: {c: 2}}, b: 1} type test0 = O.Partial<L> type test1 = O.Partial<L, 'deep'>
Make all fields of
O
optional (deeply or not)