apollographql / apollographql/fullstack-tutorial

Types mismatch: ApolloClient

未关闭
#104 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.2k
派生
808
PR 合并指标
30 天内没有已合并 PR

描述

I set isInCart is Boolean and I try to return some value is string type in this function. It work. I think should be show some error because type mismatch

![image](https://user-images.githubusercontent.com/20473767/67133809-c2b14a80-f238-11e9-8aad-fc5032f80600.png)

![image](https://user-images.githubusercontent.com/20473767/67133829-df4d8280-f238-11e9-85c3-ed44838a127e.png)

贡献指南

这个仓库没有索引到贡献指南

调研方向

定位教程应用中 ApolloClient 的使用位置和 isInCart 的定义,以截图作为起始线索。复现报告的 Boolean/string 不匹配,并找到相关的类型检查命令或测试;完成后应使预期的类型行为明确且可验证。

由索引模型根据 Issue 内容生成。

评估

技术栈
graphql, react, typescript
领域
api, frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。