UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

10 lines (9 loc) 154 B
class X { add (x: number, y: number): number { return x + y; } } export default function test () { const x = new X(); return x.add(12, 23); }