diff --git a/types/package.json b/types/package.json index d83ece932b6b1..f5c5c5248739e 100644 --- a/types/package.json +++ b/types/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/types", - "version": "0.3.2", + "version": "0.3.3", "description": "Pipedream TypeScript types", "keywords": [ "pipedream", diff --git a/types/src/index.ts b/types/src/index.ts index efcf1b25083d7..6ea9aa5cf0c4b 100644 --- a/types/src/index.ts +++ b/types/src/index.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable @typescript-eslint/no-explicit-any */ export type JSONValue = | string @@ -70,7 +69,7 @@ export interface HTTPResponse { /** * Http Body */ - body: string | Buffer | NodeJS.ReadableStream; + body: string | Buffer | ReadableStream; /** * If true, issue the response when the promise returned is resolved, otherwise issue * the response at the end of the workflow execution @@ -115,13 +114,13 @@ export interface IApi { export interface IFile { delete(): Promise; - createReadStream(): Promise; - createWriteStream(contentType?: string, contentLength?: number): Promise; + createReadStream(): Promise; + createWriteStream(contentType?: string, contentLength?: number): Promise; toEncodedString(encoding?: string, start?: number, end?: number): Promise; toUrl(): Promise; toFile(localFilePath: string): Promise; toBuffer(): Promise; - fromReadableStream(readableStream: NodeJS.ReadableStream, contentType?: string, contentSize?: number): Promise; + fromReadableStream(readableStream: ReadableStream, contentType?: string, contentSize?: number): Promise; fromFile(localFilePath: string, contentType?: string): Promise; fromUrl(url: string, options?: any): Promise; toJSON(): any; @@ -384,6 +383,12 @@ export interface Action< type: "action"; methods?: Methods & ThisType & Methods>; props?: ActionPropDefinitions; + annotations?: { + destructiveHint?: boolean; + idempotentHint?: boolean; + openWorldHint?: boolean; + readOnlyHint?: boolean; + } additionalProps?: ( previousPropDefs: ActionPropDefinitions ) => Promise; diff --git a/types/tsconfig.json b/types/tsconfig.json index c9ce351b00baa..a66644eeb6ace 100644 --- a/types/tsconfig.json +++ b/types/tsconfig.json @@ -11,6 +11,7 @@ "lib": ["es6"], "strictFunctionTypes": true, "strictNullChecks": true, + "skipLibCheck": true, /* Skip type checking of declaration files in node_modules. */ "baseUrl": ".", "paths": { "@pipedream/types": ["."] } },