Skip to content

Commit f5e57aa

Browse files
authored
fix(types): update Cache#get to allow Promise return type (#557)
1 parent 5fdc2f1 commit f5e57aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export type RequestInterface = OctokitTypes.RequestInterface;
136136
export type Cache =
137137
| LRUCache<string, string>
138138
| {
139-
get: (key: string) => string;
139+
get: (key: string) => string | Promise<string>;
140140
set: (key: string, value: string) => any;
141141
};
142142

0 commit comments

Comments
 (0)