Skip to content

Commit

Permalink
Minor tweak to index.ts
Browse files Browse the repository at this point in the history
optional parameter in impl signature of unindex
  • Loading branch information
Enet4 committed Sep 30, 2021
1 parent fc124f7 commit a608a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ class DicoogleAccess {
* @param callback the function to call on completion
*/
unindex(uri: string | string[], provider: string | string[], callback?: (error: any) => void): Promise<void>;
unindex(uri: string | string[], provider: string | string[] | ((error: any) => void), callback?: (error: any) => void) {
unindex(uri: string | string[], provider?: string | string[] | ((error: any) => void), callback?: (error: any) => void) {
if (typeof provider === 'function' && !callback) {
callback = provider;
provider = undefined;
Expand Down

0 comments on commit a608a32

Please sign in to comment.