【发布时间】:2016-09-29 01:08:16
【问题描述】:
我正在尝试使用 Google 的 Closure Compiler 编译 ExtJS 6.2.0。 extjs源码中有如下注解:
* @param {Ext.data.TreeModel[]} records An array of records.
关闭错误,因为它无法识别这种类型的注释。错误如下所示:
extjs-6.2.0/build/ext-all-debug.js:248792: ERROR - Bad type annotation. expecting a variable name in a @param tag. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.
* @param {Ext.data.TreeModel[]} data.records An Array of Models representing the
我不一定会在提供的 URL 中看到解决方案。 ExtJS 中还有很多像这样的类型,我猜编译器会遇到问题。
这里有一个简单的解决方法吗?我可以从编译中删除--jscomp_error checkTypes,但我宁愿以正确的方式这样做。
【问题讨论】:
标签: javascript extjs google-closure-compiler