New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于types感应 #21
Comments
必须命名成store.d.ts? |
不是的,和名字没关系,你应该没有为appCtx标注正确的类型, 注意看这个示例
如果是ts工程,可参照这里链接里的示例 结论你没有给实例上下文标记正确的类型导致的IDE无法识别和调整 |
麻烦帮我看看哪里的问题 package.json
jsconfig.json
src/tmp-mobile/stores/concent/concent.d.ts
使用src/tmp-mobile/pages/PageConcentTest.js
还是没法感应出来 |
加上 |
搞不懂webstorm得这样用才行
直接用这个不行
|
额,很久没用webstorm了,和vsc有细节的区别吧…… 感觉你的项目目录好深啊, baseurl现在推荐src, 然后目录越浅记忆负担越小,例如像我的示例一样,引入只需要 import('types/store.d.ts')就完事了。 |
我参考例子
https://codesandbox.io/s/concent-guide-xvcej?file=/src/types/store.d.ts
在放数据模型的文件夹写了一个concent.d.ts
reducer.js有一个函数
但是我在fn控件上使用的时候
虽然调用成功,但是webstorm还是提示
makeNewFirstName
函数不识别,没法点函数自己跳过去。请问这是有哪里没弄对吗?
The text was updated successfully, but these errors were encountered: