Skip to content

Commit

Permalink
Merge pull request #6 from TriPSs/master
Browse files Browse the repository at this point in the history
fix: Fixed `opts` being required in typings
  • Loading branch information
Kikobeats authored Apr 26, 2024
2 parents 72c54a2 + fd26521 commit b8edc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ interface WithLockInterface extends WithLock {
isLocked: () => boolean;
}

declare function withLock(opts: number): WithLockInterface;
declare function withLock(opts?: number): WithLockInterface;

export { withLock, createLock };

0 comments on commit b8edc80

Please sign in to comment.