Definitelytyped: @types/ramda

Created on 8 Jun 2018  路  6Comments  路  Source: DefinitelyTyped/DefinitelyTyped

Hi,

I've got the following error when I try to use ramda in an angular 6 project.
I've tried it with ts 2.7.2 and 2.9.1.

ERROR in node_modules/@types/ramda/index.d.ts(89,27): error TS1005: ';' expected.
node_modules/@types/ramda/index.d.ts(89,41): error TS1005: ';' expected.
node_modules/@types/ramda/index.d.ts(89,69): error TS1005: '(' expected.
node_modules/@types/ramda/index.d.ts(89,75): error TS1005: ')' expected.
node_modules/@types/ramda/index.d.ts(93,11): error TS1005: ';' expected.
node_modules/@types/ramda/index.d.ts(93,53): error TS1005: '(' expected.
node_modules/@types/ramda/index.d.ts(94,11): error TS1005: ',' expected.
node_modules/@types/ramda/index.d.ts(94,53): error TS1005: '(' expected.
node_modules/@types/ramda/index.d.ts(95,14): error TS1005: ')' expected.
node_modules/@types/ramda/index.d.ts(98,11): error TS1005: ';' expected.
node_modules/@types/ramda/index.d.ts(98,31): error TS1005: ')' expected.
node_modules/@types/ramda/index.d.ts(98,52): error TS1005: '(' expected.
node_modules/@types/ramda/index.d.ts(98,67): error TS1005: '(' expected.
node_modules/@types/ramda/index.d.ts(98,76): error TS1005: ',' expected.
node_modules/@types/ramda/index.d.ts(98,83): error TS1005: ')' expected.
node_modules/@types/ramda/index.d.ts(106,31): error TS1005: ';' expected.
node_modules/@types/ramda/index.d.ts(106,53): error TS1005: ',' expected.
node_modules/@types/ramda/index.d.ts(107,18): error TS1005: ';' expected.
node_modules/@types/ramda/index.d.ts(107,52): error TS1005: '(' expected.
node_modules/@types/ramda/index.d.ts(109,5): error TS1005: ',' expected.
node_modules/@types/ramda/index.d.ts(109,6): error TS1005: ')' expected.
node_modules/@types/ramda/index.d.ts(2139,1): error TS1128: Declaration or statement expected.
  • [x] I tried using the @types/ramda package and had problems.
  • [x] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • [ ] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • [ ] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see Definitions by: in index.d.ts) so they can respond.

    • Authors: @sbking @mdekrey

If you do not mention the authors the issue will be ignored.

Most helpful comment

For me this is the most up-to-date configuration that works, newer versions will break.

"ramda": "0.25.0",
"@types/ramda": "0.25.24", // newer until 0.25.33 will break
"typescript": "2.7.2" // newer until 2.9.2 will break

All 6 comments

@donnut @tycho01 @mdekrey

@gkTim consider trying the typings at https://github.com/types/npm-ramda/. 2.9 compatibility is still an open issue there, but up to 2.8 should work.

@tycho01 Thanks for the hint. This works.

For me this is the most up-to-date configuration that works, newer versions will break.

"ramda": "0.25.0",
"@types/ramda": "0.25.24", // newer until 0.25.33 will break
"typescript": "2.7.2" // newer until 2.9.2 will break

I use @types/[email protected], is Ok.

For me this is the most up-to-date configuration that works, newer versions will break.

"ramda": "0.25.0",
"@types/ramda": "0.25.24", // newer until 0.25.33 will break
"typescript": "2.7.2" // newer until 2.9.2 will break

I went with:

"ramda": "^0.25.0",
"@types/ramda": "^0.25.0",
"typescript": "^2.9.2"

And this seems to be working. Will post again if there are surprises...

Was this page helpful?
0 / 5 - 0 ratings