UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

11 lines (9 loc) 193 B
type Nameable = { name: string; }; type Locatable = { address: string; }; export default function demo (input: Nameable & Locatable): string { return `${input.name} ${input.address}`; }