Skip to content

Commit

Permalink
make 'start' required for BitOffsetOptions
Browse files Browse the repository at this point in the history
Signed-off-by: James Xin <james.xin@improving.com>
  • Loading branch information
jamesx-improving committed Sep 26, 2024
1 parent 5db097a commit a6febfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2490,8 +2490,10 @@ export function createFunctionRestore(
export interface BitOffsetOptions {
/** The starting offset index. */
start: number;
/** The ending offset index. Optional since Valkey version 8.0 and above.
* If not provided, it will default to the end of the string
/**
* The ending offset index. Optional since Valkey version 8.0 and above for the BITCOUNT command.
* If not provided, it will default to the end of the string.
* Could be defined only if `start` is defined.
*/
end?: number;
/**
Expand Down

0 comments on commit a6febfa

Please sign in to comment.