Skip to content

Commit

Permalink
Merge pull request #634 from nats-io/tsc
Browse files Browse the repository at this point in the history
[CHORE] tsc compiler pacification
  • Loading branch information
aricart committed Nov 2, 2023
2 parents 40897bd + ffd620e commit 5f9c225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jetstream/objectstore.ts
Expand Up @@ -785,7 +785,8 @@ export class ObjectStoreImpl implements ObjectStore {
}
const max_age = opts?.ttl || 0;
delete opts.ttl;
const sc = Object.assign({ max_age }, opts) as StreamConfig;
// pacify the tsc compiler downstream
const sc = Object.assign({ max_age }, opts) as unknown as StreamConfig;
sc.name = this.stream;
sc.allow_direct = true;
sc.allow_rollup_hdrs = true;
Expand Down

0 comments on commit 5f9c225

Please sign in to comment.