The difference of function declaration in typescript

后端 未结 0 370
花落未央
花落未央 2020-11-30 19:46

Let\'s say we have code like this:

interface Vehicle {
    bicycle(): string;
    car(wheel: number): void;
    bus(passanger: number): {
        name: string         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题