Example where I can reproduce the problem (language: TypeScript/TypeScript JSX): ```ts const map = new Map<string, ReturnType<typeof someFunction>>() ```