-
Notifications
You must be signed in to change notification settings - Fork 24
默认的lib,应该只包含 es2016 , 不应该包含DOM #14
Comments
I think the |
@emeryao so far, I can't find any |
what about the |
So I think the that's also why typescript separate the whole type definition into several file, and allowd use choose different please reconsider this for someone who use the "strict type definition " |
I think your so called |
but things like if the type definition is incorrect , what's the different with js + "AutoComplete" +"Bable" we are using typescript , shouldn't us make the type definition correct ? |
当跟wx一块工作的时候, tsconfig.json 里面应该只包含
lib:["es2016"]
, 因为所有的DOM API 在微信中都不可用而
interface Console
却包含在 dom 中, 所以 we-app.d.ts 里面应该包含 Console 的定义, 另外setTimeout
setInterval
clearInterval
也需要定义,下面是我写的定义, Console 是从 dom.d.ts 里面 偷的 :P
setImmediate
和clearImmediate
我没定义, 主要是没用到,也不确定 小程序支持The text was updated successfully, but these errors were encountered: