Is it possible in flowjs to extract type from Union type?
I tried the following example, but no luck.
type ExtractType = <T>(T | () => T) => T;
type Config = string | () => string;
type S = $Call<ExtractType, Config>;
const str1: S = 'str'; // Error: requires function
const str2: S = () => 'str'; // Error: requires string