Type alias RecursiveMapToFunction<T, PARAM_TYPE>

RecursiveMapToFunction<T, PARAM_TYPE>: {
    [P in keyof T]: RecursiveMapToFunctionDist<T[P], PARAM_TYPE>
}

Maps a type recursively and adds the ability for each object property to be a function that returns the same type but replace each non object type with a function that returns the same type

Type Parameters

  • T

    type to map

  • PARAM_TYPE

    type of parameter the functions get

Generated using TypeDoc