我正在尝试运行一个Id类型为标量Int的graphql查询。 简单地编写Int是行不通的。Number也不能工作。}); } 现在我在where.id上得到了一个错误 Type 'number' is not assignable to type 'GraphQLScalarType | undefined
我有一个简单的对象,有两个字段name和age,最初它们被定义为未定义的,稍后在代码中将赋值 const s={ age:undefineds.name="Test" //error 当我尝试为我的属性赋值时,它会出现typescript错误 Type '"Test"' is not assignable to type 'undefined'.
: number) { Type 'number | undefined' is not assignable to type 'number'.Type 'undefined' is not assignable to type 'number'.ts(2322) this.value = isValid(