Type aliases
| Language | Example |
|---|---|
| Schema / Rust | type A = T; |
| Go | type A = T |
| Kotlin | typealias A = T |
| TypeScript | type A = T; |
| Python | A: TypeAlias = T |
Schema
mabo
struct Sample
type Other = Sample;1
2
3
2
3
Languages
rs
struct Sample {}
type Other = Sample;1
2
3
2
3
go
type Sample struct{}
type Other = Sample1
2
3
2
3
kt
class Sample
typealias Other = Sample1
2
3
2
3
ts
class Sample {}
type Other = Sample;1
2
3
2
3
py
@dataclass
class Sample:
pass
Other: TypeAlias = Sample1
2
3
4
5
6
2
3
4
5
6