Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Ricart <[email protected]>
  • Loading branch information
aricart committed Feb 4, 2025
1 parent ceb0fd9 commit b33c8a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jetstream/src/jsmconsumer_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class ConsumerAPIImpl extends BaseApiClientImpl implements ConsumerAPI {
async add(
stream: string,
cfg: ConsumerConfig,
action = ConsumerApiAction.Create,
action: ConsumerApiAction = ConsumerApiAction.Create,
): Promise<ConsumerInfo> {
validateStreamName(stream);

Expand Down
4 changes: 2 additions & 2 deletions kv/src/kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ export class Bucket implements KV {
return this.fullKeyName(ek);
});

let deliver_policy = DeliverPolicy.LastPerSubject;
let deliver_policy: DeliverPolicy = DeliverPolicy.LastPerSubject;
if (content === KvWatchInclude.AllHistory) {
deliver_policy = DeliverPolicy.All;
}
Expand Down Expand Up @@ -822,7 +822,7 @@ export class Bucket implements KV {
const co = {} as Partial<ConsumerConfig>;
co.headers_only = opts.headers_only || false;

let content = KvWatchInclude.LastValue;
let content: KvWatchInclude = KvWatchInclude.LastValue;
if (opts.include === KvWatchInclude.AllHistory) {
content = KvWatchInclude.AllHistory;
} else if (opts.include === KvWatchInclude.UpdatesOnly) {
Expand Down

0 comments on commit b33c8a8

Please sign in to comment.