Ender Lee

Results 12 comments of Ender Lee

I think that when resolution `@types/moduleB` it will treat it as a folder (similar to node resolution), but I don't know which step it performed this process. I didn't explicitly...

can anybody help me to solve it ?

这个不是框架层面控制的,需要把 tsconfig 里面的 `strict: true` 开启,然后配置下 eslint,https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md

好的,这个我看下。欢迎 PR

![image](https://user-images.githubusercontent.com/34906299/67669613-3aa41100-f9ad-11e9-83de-9a61ba988fd7.png) 这个事件触发的时候应该下标应该是 1 吧

> > ![image](https://user-images.githubusercontent.com/34906299/67669613-3aa41100-f9ad-11e9-83de-9a61ba988fd7.png) > > 这个事件触发的时候应该下标应该是 1 吧 > > 为什么是 1 呢?每次都是从 0 开始重新执行的。可以在这个例子中试试呢: > https://codesandbox.io/s/50ww35vkzl 我看你代码是 render 的时候才修改 cursor 为 0 吧,事件触发的时候,当时的 currentCursor 是 1,这时就会改变 memorizState[1] 的值

i meet the same question

> 如果 await 后面跟的不是 promise ,那么是不是,就不是所谓的顺序执行了! 如果 await 后面的 x 不是 promise 会转换为 promise.resolve(x),也就是还是返回的 promise