piotrwitek / react-redux-typescript-guide

The complete guide to static typing in "React & Redux" apps using TypeScript
https://piotrwitek.github.io/react-redux-typescript-guide/
MIT License
13.35k stars 1.09k forks source link

VSCode Intellisense broken by RootState #194

Closed zbeyens closed 4 years ago

zbeyens commented 4 years ago

VSCode autocomplete was completely stuck on "Loading..." only because of this:

export type RootState = StateType<
  ReturnType<typeof import('./root-reducer').default>
>;

I manually encoded the types and intellisense speed is back to very fast

export interface RootState {
    user: UserState;
    auth: AuthState;
}
piotrwitek commented 4 years ago

Hey, Without a clear reproduction case that would confirm your claims, I cannot do anything with this report.