Make all fields of O optional (deeply or not)
O
to make optional
(?='flat') 'deep' to do it deeply
'flat'
List
import {O} from 'ts-toolbelt' type L = [1, 2, 3, [4, [5]]] type test0 = O.Partial<L> type test1 = O.Partial<L, 'deep'>
Make all fields of
O
optional (deeply or not)