Skip to content

Commit

Permalink
Fix fetch type casting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joewagner committed Jan 3, 2023
1 parent fc53625 commit b3f71fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ const fetchAndUnpack = async function (platarch: Platarch): Promise<void> {
console.log(`fetching: ${url}`);

const res = await fetch(url);
// TODO: Seems to be a bug in the fetch typings?
// @ts-expect-error
const downloadReadstream = Readable.fromWeb(res.body);
// TODO: Seems to be a bug in the fetch typings
const downloadReadstream = Readable.fromWeb(res.body as unknown as any);

if (platarch.filetype === ".tar.gz") {
await tarx(downloadReadstream);
Expand Down

0 comments on commit b3f71fc

Please sign in to comment.