File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,20 +56,20 @@ export default interface AsyncCache<V = unknown, K = string> {
56
56
/**
57
57
* Returns an iterator by the cache keys
58
58
*/
59
- [ Symbol . asyncIterator ] ( ) : AsyncIterableIterator < K > ;
59
+ [ Symbol . asyncIterator ] ( ) : AsyncIterableIterator < K > | IterableIterator < K > ;
60
60
61
61
/**
62
62
* Returns an iterator by the cache keys
63
63
*/
64
- keys ( ) : AsyncIterableIterator < K > ;
64
+ keys ( ) : Promise < AsyncIterableIterator < K > | IterableIterator < K > > ;
65
65
66
66
/**
67
67
* Returns an iterator by the cache values
68
68
*/
69
- values ( ) : AsyncIterableIterator < V > ;
69
+ values ( ) : Promise < AsyncIterableIterator < K > | IterableIterator < K > > ;
70
70
71
71
/**
72
72
* Returns an iterator from the cache that produces pairs of keys and values
73
73
*/
74
- entries ( ) : AsyncIterableIterator < [ K , V ] > ;
74
+ entries ( ) : Promise < AsyncIterableIterator < [ K , V ] > | IterableIterator < [ K , V ] > > ;
75
75
}
You can’t perform that action at this time.
0 commit comments