Skip to content

Commit 2e7bcc2

Browse files
author
Christian Llontop
authored
add type cast for an array element (#787)
1 parent 5e1c8bb commit 2e7bcc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/etcd/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
21
import {EventEmitter} from 'events';
32
import type {Lease} from 'etcd3';
43
import {Etcd3} from 'etcd3';
@@ -92,7 +91,7 @@ class KeyvEtcd<Value = any> extends EventEmitter implements Store<Value> {
9291
data.push(undefined);
9392
} else {
9493
// @ts-expect-error - value is an object
95-
data.push(value.value);
94+
data.push(value.value as StoredData<Value>);
9695
}
9796
}
9897

0 commit comments

Comments
 (0)