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

6.1.0 TypeScript definition error #552

Closed
k8w opened this issue Dec 13, 2016 · 4 comments
Closed

6.1.0 TypeScript definition error #552

k8w opened this issue Dec 13, 2016 · 4 comments
Labels

Comments

@k8w
Copy link

k8w commented Dec 13, 2016

Environment
TypeScript 2.1.1
NodeJS 6.7.0

Compile Error

node_modules/protobufjs/types/protobuf.js.d.ts(1185,10): error TS2417: Class static side 'typeof Root' incorrectly extends base class static side 'typeof Namespace'.
Types of property 'fromJSON' are incompatible.
Type '(json: any, root?: Root | undefined) => Root' is not assignable to type '(name: string, json: Object) => Namespace'.
Types of parameters 'root' and 'json' are incompatible.
Type 'Object' is not assignable to type 'Root | undefined'.
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
Type 'Object' is not assignable to type 'Root'.
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
Property 'deferred' is missing in type 'Object'.

@dcodeIO
Copy link
Member

dcodeIO commented Dec 13, 2016

Sorry, I am not quite sure where this is coming from. Maybe try typescript 2.2.0-dev.20161212.

@dcodeIO dcodeIO added the unsure label Dec 13, 2016
@dcodeIO
Copy link
Member

dcodeIO commented Dec 15, 2016

Does it work with 2.2.0-dev?

@endel
Copy link
Contributor

endel commented Dec 15, 2016

The latest stable version is 2.1.4, I'd recommend to test using it.

@dcodeIO
Copy link
Member

dcodeIO commented Dec 18, 2016

Closing this for now. Feel free to reopen if the issue persists.

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

No branches or pull requests

3 participants