method AsyncObjectMapper.prototype.toFunction AsyncObjectMapper.prototype.toFunction(): AsyncObjectMapperFunction<TInput, TOutput, TContext> Wrap this instance in a function, with a schema property. Return Type AsyncObjectMapperFunction<TInput, TOutput, TContext>