Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/types",
"version": "0.3.3",
"version": "0.3.4",
"description": "Pipedream TypeScript types",
"keywords": [
"pipedream",
Expand Down
10 changes: 6 additions & 4 deletions types/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Readable, Writable } from "stream";

Check failure on line 1 in types/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint Code Base

Expected a line break before this closing brace

Check failure on line 1 in types/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint Code Base

Expected a line break after this opening brace

/* eslint-disable @typescript-eslint/no-explicit-any */
export type JSONValue =
| string
Expand Down Expand Up @@ -69,7 +71,7 @@
/**
* Http Body
*/
body: string | Buffer | ReadableStream;
body: string | Buffer | Readable;
/**
* If true, issue the response when the promise returned is resolved, otherwise issue
* the response at the end of the workflow execution
Expand Down Expand Up @@ -114,13 +116,13 @@

export interface IFile {
delete(): Promise<void>;
createReadStream(): Promise<ReadableStream>;
createWriteStream(contentType?: string, contentLength?: number): Promise<WritableStream>;
createReadStream(): Promise<Readable>;
createWriteStream(contentType?: string, contentLength?: number): Promise<Writable>;
toEncodedString(encoding?: string, start?: number, end?: number): Promise<string>;
toUrl(): Promise<string>;
toFile(localFilePath: string): Promise<void>;
toBuffer(): Promise<Buffer>;
fromReadableStream(readableStream: ReadableStream, contentType?: string, contentSize?: number): Promise<IFile>;
fromReadableStream(readableStream: Readable, contentType?: string, contentSize?: number): Promise<IFile>;
fromFile(localFilePath: string, contentType?: string): Promise<IFile>;
fromUrl(url: string, options?: any): Promise<IFile>;
toJSON(): any;
Expand Down
Loading