What is the current state of JavaScript static type checking?

前端 未结 3 1223
灰色年华
灰色年华 2021-02-18 21:48

I know that the Google Closure Compiler does type checking—but are there any alternatives, preferably that aren\'t so tightly coupled with a library and optimizer?

If no

3条回答
  •  旧巷少年郎
    2021-02-18 22:20

    There's Doctor JS, which is a Mozilla project that primarily (as I understand it, at least) does type-checking for JS.

提交回复
热议问题