Flow-typed: Deprecated $call syntax in express_v4.16.x.js using flow 0.75.0

Created on 22 Jun 2018  路  3Comments  路  Source: flow-typed/flow-typed

After upgrading to flow 0.75.0 the express definition file reports the following error but I cannot find any documentation on what changed:

Warning ----------------------------------------------------------------------- interfaces.flow/express_v4.16.x.js:200:3

Deprecated $call syntax. Use callable property syntax instead. (`deprecated-call-syntax`)

   200|   $call: (
          ^^^^^

Most helpful comment

FYI for anyone who has this issue, whilst waiting for these definitions to update you can set this option in your .flowconfig to disable the error:

[lints]
deprecated-call-syntax=off

All 3 comments

FYI for anyone who has this issue, whilst waiting for these definitions to update you can set this option in your .flowconfig to disable the error:

[lints]
deprecated-call-syntax=off

I'm on Flow 0.52.0, and getting many errors like this after the fix in https://github.com/flowtype/flow-typed/pull/2408:

Library type error:
flow-typed/npm/express_v4.16.x.js:215
     v------------------------------------------------------------------------------------
215: declare class express$Application extends express$Router mixins events$EventEmitter {
216:   constructor(): void;
217:   locals: { [name: string]: mixed };
...:
253: }
     ^ property `disable`. Property not found in
Object

Any ideas?

Upgrading to flow 0.75.0 is not a good option at the moment, because it causes me many more errors with GraphQL types, and I would have to also upgrade GraphQL to the newest version.

@luislhl You probably did this and I am not sure this is helpful, I had to just //$FlowIgnore above the that class declaration for the time being. I am on the same versions as you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

retyui picture retyui  路  3Comments

lematt1991 picture lematt1991  路  3Comments

migueloller picture migueloller  路  4Comments

ryyppy picture ryyppy  路  3Comments

ggravarr picture ggravarr  路  3Comments