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


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?



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


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: