Skip to content

Commit

Permalink
add type cast for an array element (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Llontop committed Apr 21, 2023
1 parent 5e1c8bb commit 2e7bcc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/etcd/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */
import {EventEmitter} from 'events';
import type {Lease} from 'etcd3';
import {Etcd3} from 'etcd3';
Expand Down Expand Up @@ -92,7 +91,7 @@ class KeyvEtcd<Value = any> extends EventEmitter implements Store<Value> {
data.push(undefined);
} else {
// @ts-expect-error - value is an object
data.push(value.value);
data.push(value.value as StoredData<Value>);
}
}

Expand Down

0 comments on commit 2e7bcc2

Please sign in to comment.