Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type errors after npm i #8

Open
otbe opened this issue May 7, 2016 · 1 comment
Open

Type errors after npm i #8

otbe opened this issue May 7, 2016 · 1 comment

Comments

@otbe
Copy link

otbe commented May 7, 2016

Hi,

I get some type errors after updating my project dependencies.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(94,100): error TS2344: Type 'TArguments' does not satisfy the constraint 'HistoryOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(94,137): error TS2344: Type 'TArguments' does not satisfy the constraint 'HistoryOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(96,95): error TS2344: Type 'TArguments' does not satisfy the constraint 'HistoryOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(96,132): error TS2344: Type 'TArguments & QueryOptions' does not satisfy the constraint 'HistoryOptions'.
  Property 'queryKey' is missing in type 'TArguments & QueryOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(98,96): error TS2344: Type 'TArguments' does not satisfy the constraint 'HistoryOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(98,133): error TS2344: Type 'TArguments & BasenameOptions' does not satisfy the constraint 'HistoryOptions'.
  Property 'queryKey' is missing in type 'TArguments & BasenameOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(828,101): error TS2344: Type 'TArguments' does not satisfy the constraint 'HistoryOptions'.

ERROR in /typings/browser/definitions/react-router/index.d.ts
(828,138): error TS2344: Type 'TArguments' does not satisfy the constraint 'HistoryOptions'.

[email protected]
[email protected]

and my typings.json looks like this

"dependencies": {
  "react-router": "registry:npm/react-router#2.0.0+20160214194820"
}

What can I do?

@vslinko
Copy link
Collaborator

vslinko commented May 7, 2016

I think your problem will be gone after andrew-w-ross/typings-history#4 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants