Type alias ValueType<T>

ValueType<T>: (T extends "boolean" | "boolean?"
    ? boolean
    : T extends "number" | "number?"
        ? number
        : string) | (T extends `${string}?`
    ? undefined
    : never)

Converts a ValueTypeDescription to the type it should be interpreted as.

Type Parameters