method mapFrom.constant mapFrom.constant<TValue>(this: void,value: TValue): () => 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 () => TValue