What does `const vm: Constructor = this` mean in source code?


#1

What does const vm: Constructor = this mean? Basically I don’t know how to read that syntax. Is that a ES6 syntax.

Can someone please put the meaning of that line in words?

Thanks


#2

It’s Flow syntax. Flow is a tool to add type annotations to Javascript.


#3

After posting my query, later I figured that it was some sort of type checking syntactic thingy (in ES6). That lead me to think Vue is using TypeScript but you cleared that even further. Thanks :+1: