Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 655 Bytes

typescript.md

File metadata and controls

25 lines (16 loc) · 655 Bytes

TypeScript

Rematch can work with TypeScript with the following changes:

Turn off "noImplicitThis".

Rematch often specifies the context of this, leading to TS errors.

You can turn these off by specifying noImplicitThis as false in your "tsconfig.json".

// tsconfig.json

{
  "compilerOptions": {
    "noImplicitThis": false,
  }
}
Ensure [email protected] is not a dependency.

Rematch relies on [email protected], a branch of Redux with cleaned up a lot of complex typings relying on generics.

As Redux is a dependency of Rematch, you may just need to remove any references to Redux in your package.json and reinstall modules.