UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

9 lines (7 loc) 154 B
type User = { name: string; } export const user: User = {name: 'foo'}; export default function demo (input: string): number { return input.length; }