variable mapFrom

Provides convenience functions for object mappers.

Use these to map to constant values, or to omit the property.

Methods

constant<TValue>(value: TValue): () => TValue
null(): null
undefined(): undefined

Usage

import { mapFrom } from ".";