Skip to content

Commit

Permalink
fix: add missing type to hrandfield (#1028)
Browse files Browse the repository at this point in the history
* fix: add missing type to hrandfield

* ci: increase test timeout
  • Loading branch information
ogzhanolguncu authored Apr 17, 2024
1 parent 8895aca commit ba6ecad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: bun run fmt

- name: Run tests
run: bun test pkg --bail
run: bun test pkg --bail --timeout 20000

- name: Build
run: bun run build
Expand Down
2 changes: 1 addition & 1 deletion pkg/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export class Redis {
* @see https://redis.io/commands/hrandfield
*/
hrandfield: {
(key: string): Promise<string>;
(key: string): Promise<string | null>;
(key: string, count: number): Promise<string[]>;
<TData extends Record<string, unknown>>(
key: string,
Expand Down

0 comments on commit ba6ecad

Please sign in to comment.