UNPKG

rambdax

Version:

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

19 lines (17 loc) 510 B
import {Key} from '../Any/Key' import {Depth} from '../Object/_Internal' import {List} from './List' import {Update} from '../Object/Update' import {x} from '../Any/x' /** Make some entries of `L` not `undefined` (deeply or not) @param L to make non nullable @param K (?=`Key`) to choose fields @param depth (?=`'flat'`) to do it deeply @returns [[List]] @example ```ts ``` */ export type Undefinable<L extends List, K extends Key = Key, depth extends Depth = 'flat'> = Update<L, K, x | undefined, depth>