Skip to content
Open
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
5 changes: 5 additions & 0 deletions types/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/ban-types */

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

View workflow job for this annotation

GitHub Actions / Lint Code Base

Definition for rule '@typescript-eslint/ban-types' was not found
/* eslint-disable @typescript-eslint/no-explicit-any */
export type JSONValue =
| string
Expand Down Expand Up @@ -70,7 +70,7 @@
/**
* Http Body
*/
body: string | Buffer | NodeJS.ReadableStream;

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

View workflow job for this annotation

GitHub Actions / Lint Code Base

'NodeJS' is not defined
/**
* 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 @@ -115,13 +115,13 @@

export interface IFile {
delete(): Promise<void>;
createReadStream(): Promise<NodeJS.ReadableStream>;

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

View workflow job for this annotation

GitHub Actions / Lint Code Base

'NodeJS' is not defined
createWriteStream(contentType?: string, contentLength?: number): Promise<NodeJS.WritableStream>;

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

View workflow job for this annotation

GitHub Actions / Lint Code Base

'NodeJS' is not defined
toEncodedString(encoding?: string, start?: number, end?: number): Promise<string>;
toUrl(): Promise<string>;
toFile(localFilePath: string): Promise<void>;
toBuffer(): Promise<Buffer>;
fromReadableStream(readableStream: NodeJS.ReadableStream, contentType?: string, contentSize?: number): Promise<IFile>;

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

View workflow job for this annotation

GitHub Actions / Lint Code Base

'NodeJS' is not defined
fromFile(localFilePath: string, contentType?: string): Promise<IFile>;
fromUrl(url: string, options?: any): Promise<IFile>;
toJSON(): any;
Expand Down Expand Up @@ -247,6 +247,11 @@
type: "$.service.db";
}

export interface ServiceDB {
get<T extends JSONValue>(key: string): T | undefined;
set(key: string, value: JSONValue): void;
}

// https://pipedream.com/docs/code/nodejs/using-data-stores/#using-the-data-store
export interface DataStoreProp extends BasePropInterface {
type: "data_store";
Expand Down
Loading