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

This commit is contained in:
Julien Robert 2024-10-11 22:44:12 +02:00 committed by GitHub
parent 4733fc1769
commit 65ed5eb800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)