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.

Wrong documentation or miss understanding ?

See original GitHub issue

Hi! I was reading your documentation and there, you show that FileUpload interface is an interface with:

  • filename: string;
  • mimetype: string;
  • encoding: string;
  • createReadStream: FileUploadCreateReadStream However, on index.d.ts, you show that interface FileUpload consists of:
  • filename: string;
  • mimetype: string;
  • encoding: string;
  • createReadStream(): ReadStream

So, what happens ? When I try to do a stream like const stream = file.createReadStream(), I have an exception like “file.createReadStream is not a function”.

package.json graphql-upload@^13.0.0 @types/graphql-upload@^8.0.7

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pedromdantunescommented, Dec 6, 2021

Ok, thanks for the help, I will try do my best to replicate this. I’m using this with nestjs, I don’t know if it is the problem or not… But, no problem, I will figure this out.

Thanks a lot!

0reactions
jaydensericcommented, Dec 6, 2021

Closing because this problem couldn’t be reproduced, so there is nothing I can action from here. If you manage to put together a minimal project (vanilla Node.js, no TypeScript or other build tools) that demonstrates a specific bug in this graphql-upload package we can reopen and investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nursing documentation: How to avoid the most common ...
Failure to date, time, and sign a medical entry. Lack of documentation for omitted medications and/or treatments. Incomplete or missing documentation.
Read more >
MEDICAL ERRORS IN NURSING: PREVENTING ...
The importance of proper documentation in nursing cannot be overstated. Failure to document a patient's condition, medications administered, ...
Read more >
Poor Documentation: Why It Happens and How to Fix It
In general, Stewart says poor documentation is defined as that which is lacking clarity, specificity, or completeness, and is of overall poor quality....
Read more >
Handling documentation errors : Nursing2022 - Lippincott
First, learn and follow your facility's policies and procedures about charting errors. Many of us learned to place the word “error” near the...
Read more >
Preventing Healthcare's Top Four Documentation Disasters
The best way to prevent a documentation disaster is by recognizing the most frequent kind of documentation errors and putting procedures in place...
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