UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

16 lines (12 loc) 235 B
class User { constructor (name) { this.name = name; } get length (): number { return this.name.length; } } export default function demo (name: string): string { const user = new User(name); return user.length; }