Function property vs method

前端 未结 4 2030
春和景丽
春和景丽 2020-11-30 11:00

What practical differences are there between defining an interface method:

interface Foo {
    bar(): void;
}

and defining a property with

4条回答
提交回复
热议问题