c4605

Results 8 comments of c4605

额……我重新下载了最新版的文件,用 Script Editor.app 打开,然后直接点击运行,还是报了这个错 以及补充一下,我的系统是 10.10.1

Hi, I have executed `npm test` and there are no test failed. In my case, I only use webpack to bundle javascript, other assets (for example css) was generated by...

type 那个不叫 extend ,那就是类型合并 type 关键字的产生的东西官方有一个名字 type aliases ,就是类型别名,重点是它是别名不是真正的类型 我发现大家好像都不是非常喜欢去看文档,其实这种基本的东西根本不用去看 spec ,文档里面就应该有 https://www.typescriptlang.org/docs/handbook/advanced-types.html#type-aliases ,它的设计意图,它的适用场景,它和 interface 的差异在文档里都明明白白的写清楚了,看完就好了 别的公司的东西不好说,微软出的很多东西文档都是写得非常好的,就去看文档就好了

@Weiyu-Chen 那你说说看,为什么滥用 type 是不好的……

其实文档里已经明明白白地写了: > A second more important difference is that type aliases cannot be extended or implemented from (nor can they extend/implement other types). 这就是我为什么在开头要强调 type 的那个不叫 extend ,因为那个真的不是 extend ……

有试过这个方案吗?https://www.zhihu.com/question/39516424/answer/274374076

感觉和这个相似的文章应该在 CoffeeScript 风靡起来的时候也出现过,毕竟 CoffeeScript 编译出来的也是这样子。

@jquense ~Hi I encountered the same issue when I trying to `yarn start` the `example` project:~ ~And I'm sure the version of css-loader installed in `example/node_modules` is `1.0.0`~ Sorry, I...