Converting a template string as a type to a number

Viewed 11

Is it possible to convert a type as a template string to a number?

E.g.:

type A = `${'1'}${'2'}` // should become 12, but becomes '12'
0 Answers
Related