Union from array literal · Issue #961 · facebook/flow...
Let's say a value can be one of a finite number of string values: type State = 'disconnected' | 'connecting' | 'connected'; let state: State = ...; If I already have an array of all valid states in my code somewhere, it'd be nice if it c...