UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

14 lines (11 loc) 230 B
export type User = { name: string; location: Location; }; export type Location = { address: string; } //export type address = string; export default function demo (input: User): string { return input.location.address; }