开发 VS Code 扩展时可以使用 Flow 吗?

Possible to use Flow when developing VS Code extensions?

我知道我可以使用 Typescript,但是有什么方法可以将 Flow 用于 VS Code 扩展吗?

既然可以写VS Code extension with either TypeScript or JavaScript, it's totally possible to write an extension with Flow types. You'll need to strip the types at the end of your build process with something like babel or flow-remove-types,那是完全可行的。最后,您的 Flow 类型代码将转换为常规的旧 JavaScript,这就是 VS Code 将加载的代码。