Skip to content

Commit

Permalink
adapter.ts: fix type of asyncPipeline()
Browse files Browse the repository at this point in the history
  • Loading branch information
throwaway96 committed Mar 17, 2024
1 parent 3eac683 commit eece556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ fetch.Promise = Bluebird.Promise;

// Sadly these need to be manually typed according to
// https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
// since types infered from Bluebird.Promise.promisify are wrong.
// @ts-expect-error
// since types inferred from Bluebird.Promise.promisify are wrong.
export const asyncPipeline: (
arg1: NodeJS.ReadableStream,
...args: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>
) => Promise<void> = Bluebird.Promise.promisify(pipeline);
export const asyncExecFile: (
Expand Down

0 comments on commit eece556

Please sign in to comment.