Skip to content

Commit 7ccfbd3

Browse files
authored
fix(types): add missing ServiceDB interface
any property of `type: "$.service.db"` becomes an instance of `ServiceDB` at runtime.
1 parent 3aea15a commit 7ccfbd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ export interface ServiceDBProp extends BasePropInterface {
247247
type: "$.service.db";
248248
}
249249

250+
export interface ServiceDB {
251+
get<T extends JSONValue>(key: string): T | undefined;
252+
set(key: string, value: JSONValue): void;
253+
}
254+
250255
// https://pipedream.com/docs/code/nodejs/using-data-stores/#using-the-data-store
251256
export interface DataStoreProp extends BasePropInterface {
252257
type: "data_store";

0 commit comments

Comments
 (0)