UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

16 lines (14 loc) 361 B
import {OptionalPart} from '../Object/Optional' import {Depth} from '../Object/_Internal' import {List} from './List' /** Make `L` optional (deeply or not) @param L to make optional @param depth (?=`'flat'`) to do it deeply @returns [[List]] @example ```ts ``` */ export type Optional<L extends List, depth extends Depth = 'flat'> = OptionalPart<L, depth>