We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f039610 commit 16008d3Copy full SHA for 16008d3
1 file changed
typed/typedindexer.go
@@ -57,7 +57,7 @@ func (t Indexer[K]) Get(obj K) (item K, exists bool, err error) {
57
return gotTypedObj, gotExists, gotErr
58
}
59
60
-func (t Indexer[K]) GetByKey(key string) (item interface{}, exists bool, err error) {
+func (t Indexer[K]) GetByKey(key string) (item K, exists bool, err error) {
61
var typedObj *K
62
gotItem, gotExists, gotErr := t.indexer.GetByKey(key)
63
if err != nil || !gotExists {
0 commit comments