Skip to content

Commit

Permalink
Update for unpublishAll function
Browse files Browse the repository at this point in the history
  • Loading branch information
mdidon committed Mar 24, 2021
1 parent 37eccd0 commit d35c9ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Bonjour {
* @param callback
* @returns
*/
public unpublishAll(callback: CallableFunction) {
public unpublishAll(callback?: CallableFunction | undefined) {
return this.registry.unpublishAll(callback)
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Registry {
return service
}

public unpublishAll(callback: CallableFunction) {
public unpublishAll(callback: CallableFunction | undefined) {
this.teardown(this.server, this.services, callback)
this.services = []
}
Expand Down

0 comments on commit d35c9ff

Please sign in to comment.