Skip to content

Type 'N' cannot be used to index type 'NumberToString' with TS 2.5.2 when importing Ramda #234

@alshain

Description

@alshain

According to the manual, I've installed the typings with npm install --save-dev types/npm-ramda#dist

import * as R from 'ramda';

leads to the following error:

node_modules@types\ramda\src\view.d.ts
(90,12): error TS2536: Type 'N' cannot be used to index type 'NumberToString'.

packge.json excerpt:

"@types/ramda": "github:types/npm-ramda#dist",
"ramda": "^0.24.1",
"typescript": "^2.5.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions