22. implement StringToTuple<T>

TypeScript
Is this helpful ?

  - accepted / - tried

Given a string literal type, please implement StringToTuple<T> to genrate a tuple type by spreading each characters.

type A = StringToTuple<'BFE.dev'> // ['B', 'F', 'E', '.', 'd', 'e','v']
type B = StringToTuple<''> // []

Let's try to solve this problem within 5 mintues.

Discuss(6)