Repository navigation
A doubt about [12 - chainable options] test case #20213
Unanswered
pengzhanbo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
在 Chainable Options 这个题目,给出的测试用例中,对于
result3这个测试用例:在实际的答题过程中,比如我给出的回答是:
在这里, 对
option(key, value)的value参数的类型,是符合result3代码中@ts-expect-error这个注释的,也就是说,泛型T的实例对象中,name被确定为string,而这就与Expected3中的name为number不一致。这里的 属性
name的类型不一致, 是符合这个题目的预期设计的吗?All reactions