- TypeScript Deep Dive #
<
`() => ` void `() => void`
//
const Falcon : {
name: string;
fly: () => void;
} = {
name: '',
fly: function(): void {
console.log(this.name + '');
}
};
Falcon.fly(); // '
TS Playground