Home
Home

typescript 杂

Published on 2021-11-11

  • typescript
  • The property ‘x’ does not exist on value of type ‘y’

The property ‘x’ does not exist on value of type ‘y’

在 Interface 中未定义,用 as any 解决

https://stackoverflow.com/questions/18083389/ignore-typescript-errors-property-does-not-exist-on-value-of-type#

  • « web app Previous
  • vue 杂 » Next
  • « web app Previous
  • vue 杂 » Next

NAVIGATION
  1. The property ‘x’ does not exist on value of type ‘y’