VS Code TypeScript not warning for possible undefined object

前端 未结 0 417
醉酒成梦
醉酒成梦 2021-01-13 17:09

I\'m creating this React hook, which exposes a user object. Inside the hook I\'m defining the type as either \'CognitoUserInterface | undefined\'. Since the object will be u

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