Skip to content

Type instantiation is excessively deep and possibly infinite. ts(2589) #7

@xeptore

Description

@xeptore

Bug that occurs due to excessive deep type computation.

const store = {
  state: {},
  modules: {
    a: {
      modules: {
        b: {
          modules: {
            c: {
              state: {},
              modules: {
                d: {
                  modules: {
                    e: {
                      modules: {
                        f: {
                          state: {},
                        },
                      },
                    },
                    f: {
                      state: {},
                    },
                    g: {},
                  },
                },
              },
            },
          },
        },
      },
    },
  },
};
type stateTypedStore = ModuleState<typeof store>;
//                     ^
//                     Type instantiation is excessively deep and possibly infinite. ts(2589)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions