Typescript return type - Interface or null + linter

后端 未结 0 1168
离开以前
离开以前 2021-01-21 04:12

I\'d like to have my method\'s return type as an Observable of a given Interface. But it turns out the resource can possibly be null (not found) on the API. So, what I want is,

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