Skip to content

Commit

Permalink
Merge pull request #143 from MasterOdin/patch-2
Browse files Browse the repository at this point in the history
Add TS return signature to setPort functions
  • Loading branch information
eriktrom authored Aug 13, 2022
2 parents 83686d9 + 9100cd6 commit f635574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/portfinder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export let basePort: number;
/**
* Set the lowest port to begin any port search from.
*/
export function setBasePort(port: number);
export function setBasePort(port: number): void;

/**
* The highest port to end any port search from.
Expand All @@ -46,7 +46,7 @@ export let highestPort: number;
/**
* Set the higheset port to end any port search from.
*/
export function setHighestPort(port: number);
export function setHighestPort(port: number): void;

/**
* Responds with a unbound port on the current machine.
Expand Down

0 comments on commit f635574

Please sign in to comment.