question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[express_v4.16.x] Deprecated utility. Using `$Subtype` types is not recommended

See original GitHub issue

When using flow 0.89 with the deprecated-utility lint rule enabled (related to #2991) the following warnings are shown:

Warning ---------------------------------------------------------------------- interfaces.flow/express_v4.16.x.js:123:12

Deprecated utility. Using `$Subtype` types is not recommended! (`deprecated-utility`)

   123|       req: $Subtype<express$Request>,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^


Warning ---------------------------------------------------------------------- interfaces.flow/express_v4.16.x.js:129:12

Deprecated utility. Using `$Subtype` types is not recommended! (`deprecated-utility`)

   129|       req: $Subtype<express$Request>,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^


Warning ---------------------------------------------------------------------- interfaces.flow/express_v4.16.x.js:192:12

Deprecated utility. Using `$Subtype` types is not recommended! (`deprecated-utility`)

   192|       req: $Subtype<express$Request>,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
emmenkocommented, May 2, 2019

I turned off the deprecated utility lint rule

[lints]
deprecated-utility=off

Someone would need to update the express types I guess, then we can turn the rule back on.

2reactions
AndrewSouthpawcommented, May 18, 2019

I’d say go ahead and create a PR. As long as the extant tests are passing, let’s move forward. If it breaks other stuff, we can either fix it at that point or roll back this change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contents - IBM
Step 4.1.1.5 : BCP: Use the recommended values for WLM service coefficients 318 ... The default for the dump utilities is TYPE(0:2047).
Read more >
z/OS Support for the IBM z13 Server
Notes: Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled ...
Read more >
Intro to Crypto - NewEra.com
In no event will Greg Boyd or Mainframe Crypto, LLC be liable for any loss or damage, direct or indirect, in connection with...
Read more >
sitemap-questions-279.xml - Stack Overflow
... .com/questions/1012408/whats-wrong-with-this-hql-no-data-type-for-node ... -an-upcast-pointer-is-passed-by-reference-to-a-function-expecti 2016-04-16 ...
Read more >
Release Notes for ESM 6.5c - SlideShare
ArcSight ESM 6.5c 16 ESM Release Notes Confidential ArcSight Manager ... However, we recommend that you do not send events to ESM 5.x, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found