-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How exactly is one meant to save a release asset? #369
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with |
You can override the type of the As for how to save the file, import { writeFile } from "node:fs/promises";
await writeFile("filename.ext", Buffer.from(data)) |
The same thing happens with The problem is that the result doesn't include ArrayBuffer as a type. Nothing I do will overcome that issue, even if I use |
Use |
Closing as completed here, thanks @wolfy1339. Please feel free to reopen if there are further issues. |
I'm able to get assets without a problem, and I am able to get an ArrayBuffer of an asset using the
accepts: 'application/octet-stream'
header, but no matter what I do I can't get it to save as a file. I am using TypeScript which further complicates the issue as the typing for thedata
property is either an object with static data, or simply null. It does not include the possibility of being an ArrayBuffer and so I can't work with it. I need advice please.The text was updated successfully, but these errors were encountered: