UNPKG

rambdax

Version:

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

17 lines (15 loc) 267 B
import {Union} from './Union' /** Replace `M` with `A` in `U` @param U to update @param M to select @param A to update with @returns [[Union]] @example ```ts ``` */ export type Replace<U extends Union, M extends any, A extends any> = U extends M ? A : U