UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

13 lines (9 loc) 184 B
type Visitors = { [key: string]: Visitor } type Visitor = (path: NodePath) => void; export default function demo (visitor: Visitor): Visitors { return { foo: visitor }; }