22. implement StringToTuple<T>

TypeScript

  - 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 minutes.