Skip to content

Commit

Permalink
Removing async from fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Aug 24, 2022
1 parent 2bf43b7 commit 96103da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class HeapStash {
}
}
}
async fetch (id: string, retrieveFunction: (id: string) => Promise<any>);
async fetch (id: string, settings: FetchSettings, retrieveFunction: (id: string) => Promise<any>);
async fetch (id: string, settings: FetchSettings | ((id: string) => Promise<any>), retrieveFunction?: (id: string) => Promise<any>) {
fetch (id: string, retrieveFunction: (id: string) => Promise<any>);
fetch (id: string, settings: FetchSettings, retrieveFunction: (id: string) => Promise<any>);
fetch (id: string, settings: FetchSettings | ((id: string) => Promise<any>), retrieveFunction?: (id: string) => Promise<any>) {
primaryDebugFetch(`Fetching item with ID: ${id}`);
if (!id) {
throw new Error("ID required to fetch item.");
Expand Down

0 comments on commit 96103da

Please sign in to comment.