UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

11 lines (10 loc) 188 B
export type User = { name: string; }; export default function demo (input: User): string { let output = { name: "test", address: "123 Fake Street" }; return output.name; }