#Use namespace as type.
1 messages · Page 1 of 1 (latest)
Preview:```ts
namespace Test {
export type Wow1 = string
export type Wow2 = number
export type Wow3 = boolean
}
export type Numbers = "1" | "2" | "3"
export type Imagine = Test[Wow${Numbers}]```
You can choose specific lines to embed by selecting them before copying the link.
you'd need a type to do type transforms, so either a type or an interface
usually an interface for mapping
Preview:```ts
interface Test {
Wow1: string
Wow2: number
Wow3: boolean
}
export type Numbers = "1" | "2" | "3"
export type Imagine = Test[Wow${Numbers}]```
You can choose specific lines to embed by selecting them before copying the link.