UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

11 lines (9 loc) 143 B
class Foo { method (): Foo { return this; } } export default function wat (): Foo { const foo = new Foo(); return foo.method(); }