Skip to content

Commit

Permalink
Merge pull request #921 from zapier/PDE-5544
Browse files Browse the repository at this point in the history
style(core) Update the TS typing for z.cache.set to include args "scope" and "nx"
  • Loading branch information
kola-er authored Nov 21, 2024
2 parents cb34418 + c3a921d commit ca94c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/types/zapier.custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export interface ZObject {

cache: {
get: (key: string) => Promise<any>;
set: (key: string, value: any, ttl?: number) => Promise<boolean>;
set: (key: string, value: any, ttl?: number, scope?: string[], nx?: boolean) => Promise<boolean|null>;
delete: (key: string) => Promise<boolean>;
};
}
Expand Down

0 comments on commit ca94c57

Please sign in to comment.