refactor(core): structural typing for kvstore (#22242)

This commit is contained in:
Julien Robert
2024-10-11 20:44:12 +00:00
committed by GitHub
parent 4733fc1769
commit 65ed5eb800
+1 -1
View File
@@ -1,7 +1,7 @@
package store
// KVStore describes the basic interface for interacting with key-value stores.
type KVStore interface {
type KVStore = interface {
// Get returns nil iff key doesn't exist. Errors on nil key.
Get(key []byte) ([]byte, error)