Type checker for JavaScript?

后端 未结 5 626
[愿得一人]
[愿得一人] 2020-12-07 02:02

Does anyone know if there\'s a good tool for analyzing JavaScript code and detecting type errors? I know that JavaScript itself is weakly and dynamically typed, but it woul

5条回答
  •  我在风中等你
    2020-12-07 02:24

    Google closure compiler does some type checking if you follow their recommendations for annotating your functions with jsDoc comments. See http://code.google.com/closure/compiler/docs/js-for-compiler.html

提交回复
热议问题