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.

Type looks wrong?

See original GitHub issue

Here’s the TS definition for the fileWriteStreamHandler option. Note that the return type is void but the comments (and code examples concur) say to return a writeable stream. Am I missing something? Currently I can’t use it, unless I cast the type of the function but before I do that I want to know if I’m misunderstanding.

 /**
         * which by default writes to host machine file system every file parsed; The function should
         * return an instance of a Writable stream that will receive the uploaded file data. With this
         * option, you can have any custom behavior regarding where the uploaded file data will be
         * streamed for. If you are looking to write the file uploaded in other types of cloud storages
         * (AWS S3, Azure blob storage, Google cloud storage) or private file storage, this is the option
         * you're looking for. When this option is defined the default behavior of writing the file in the
         * host machine file system is lost.
         *
         * @default null
         */
        fileWriteStreamHandler?: (() => void) | undefined;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gboercommented, Dec 24, 2021

Version 2.0.1 of @types/formidable is available @pierznj. Good luck!

2reactions
gboercommented, Dec 23, 2021

PR is up! Might take some time before it’s reviewed, merged, and released. So a bit of patience please 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Font nightmare. Formatted the same but looks different in ...
I am trying to figure out why different paragraphs throughout a document look like a different font even though they are formatted the...
Read more >
why do my linetypes look wrong - Civil 3D - Autodesk Forums
Solved: I have a FENCE linetype that isn't quite right. i've attached my drawing and linetype file. The corners don't always meet up...
Read more >
Fix text that isn't displaying properly - Google Chrome Help
Text looks fuzzy or blurry (Windows only). If text doesn't look clear on your computer, try changing your font settings. Step 1: Use...
Read more >
What causes the phenomenon where a familiar word ... - Quora
When Even the Simplest Word Looks Weird And Wrong You Have Wordnesia. Truth is, we are largely on “autopilot” when reading, etc…
Read more >
The 8 biggest typography mistakes designers make
Type might look simple, but it's still possible to get it very wrong. Here are 8 common pitfalls to avoid.
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