variable mapFromAsync

Provides convenience functions for object mappers.

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

Methods

constant<TValue>(value: TValue): () => Promise<TValue>
omit(): Promise<OmitProperty>
null(): Promise<null>
undefined(): Promise<undefined>

Usage

import { mapFromAsync } from ".";