Skip to content

Typescript compilation failures #45

@medington

Description

@medington

After cloning the repo at the current master, I'm seeing the following compilation issues:

node_modules/redux-devtools-extension/index.d.ts:1:32 - error TS2305: Module '"/data/tmp/redux-async-ts/node_modules/redux/index"' has no exported member 'GenericStoreEnhancer'.

1 import {Action, ActionCreator, GenericStoreEnhancer, compose} from "redux";
                                 ~~~~~~~~~~~~~~~~~~~~
types/global.d.ts:11:48 - error TS2344: Type 'keyof T' does not satisfy the constraint 'string'.
  Type 'string | number | symbol' is not assignable to type 'string'.
    Type 'number' is not assignable to type 'string'.

11 type Omit<T, K extends keyof T> = { [P in Diff<keyof T, K>]: T[P] };
                                                  ~~~~~~~

Steps:

  • Clone this repo
  • npm install
  • npx tsc

The second error appears to be related to known breaking changes in Typescript 2.9 with keyof. I'm assuming the first issue is just an out of sync typing file.

Downgrading to Typescript 2.8.4 got rid of the second issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions