UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

11 lines (9 loc) 155 B
type User = { name: string; }; const user: User = { name: 'bob' }; export default function demo (input: typeof user): string { return input.name; }