UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

12 lines (10 loc) 197 B
export type User = { name: string; location: Location; }; export type Location = { address: string; } export default function demo (input: User): number { return input.location.address; }