method mapFromAsync.constant mapFromAsync.constant<TValue>(this: void,value: TValue): () => Promise<TValue> Returns a function that always returns a constant value. const objectMapperSchema = { out: mapFrom.constant('Hello'), } Type Parameters TValue Parameters this: void value: TValue Return Type () => Promise<TValue>