Skip to content

Commit

Permalink
Merge pull request #1152 from thib3113/ts-cacher-lock
Browse files Browse the repository at this point in the history
feat(TS/cachers): add types for lock functions
  • Loading branch information
icebob authored Nov 14, 2022
2 parents adec402 + 339505a commit 74bf943
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,8 @@ declare namespace Moleculer {
meta: object | null,
keys: Array<string> | null
): string;
tryLock(key: string | Array<string>, ttl?: number): Promise<() => Promise<void>>
lock(key: string | Array<string>, ttl?: number): Promise<() => Promise<void>>
}

class Memory extends Base {
Expand Down

0 comments on commit 74bf943

Please sign in to comment.