import type Immutable from 'immutable'; type GenericFn = (input: string) => number; export type Spec = { foo: Map, bar: string, baz: ?Immutable.List, qux: T, fn: ?GenericFn, ... };