I have a type that consists of properties with different data types
type ExampleType = {
one: string
two: boolean
three: 'A' | 'Union'
}
Is there an easier way to define the same type but with all properties as strings?
type ExampleStringType = {
one: string
two: string
three: string
}
While looking through the documentation, I came across some intrinsic string manipulation types, but none for converting all properties to string. I believe it should be possible. Perhaps something like this:
const value: AllString<ExampleType> = {
one: "string"
two: "string"
three: "string"
}