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.

Replacing a libdef with a custom one, robustly

See original GitHub issue

How do I replace a libdef with a custom one of my own creation? I still want the full benefit of all the other libdefs.

Equivalently, I’d like to remove one libdef, but I don’t want subsequent updates of my libdefs to undo the replacement. It seems to me that simply deleting the libdef from the flow-typed directory would suffer this problem.

The number of challenges I’m having with the Express libdef has grown to the point where I just don’t see how I’m going to be able to use it. All I want are limited views of the request and response objects, extended with my session information and utility methods.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

ryyppycommented, Nov 19, 2016

@jtlapp Did you actually remove the flow-typed/npm/express_v4.x.x.js? If you have two files doing a declare module 'express' it may take one of them… but not both.

Also, what is your [libs] configuration?

EDIT: Here is a project I recently contributed to, which had the same problem as you, but with lodash:

Awpteamoosecommented, Aug 17, 2017

This broke in flow 0.53 for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LIBDEF—allocate application libraries - IBM
The LIBDEF service provides for the dynamic definition of application data sets, thus allowing application data sets to be specified during an ISPF...
Read more >
Advanced Design System 2022 Release Notes
Workaround: To fix this issue, use one of the following methods: Open and Save the custom VTB in SystemVue2022Update0.1. Now, you can use...
Read more >
Stimfit Documentation
Download Stimfit from here and install it on your computer. ... Python function: the custom Python function to be executed when clicking on ......
Read more >
Modular Verification of Security Protocol Code by Typing
We can now prove Theorem 1. We have that Lib;RPC = (0,X,(IL,IR)) where X = assume (Libdef ∧ RPCdef) Lib[RPC] is a refined...
Read more >
[Cmake-commits] CMake annotated tag, v3.8.0-rc1, created ...
It was generated because a ref change was pushed to the repository containing the project "CMake". The annotated tag, v3.8.0-rc1 has been ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found