The `class`, a creature which spans both realms
class Foo {
constructor(name: string) {
this.name = name
}
name: string
hasBar?: string
certainlyNotNull!: number
}class Foo {
// ...
private handleBar() {
return this.name + (this.hasBar || '')
}
init = 2;
}Last updated