Skip to content

Commit

Permalink
Merge pull request #139 from jonluca/master
Browse files Browse the repository at this point in the history
fix(types): fixed typescript definition
  • Loading branch information
eriktrom authored Aug 13, 2022
2 parents 79eb585 + a4d5eff commit 26951d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/portfinder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

type PortfinderCallback = (err: Error, port: number) => void;

interface PortFinderOptions{
interface PortFinderOptions {
/**
* Host to find available port on.
*/
Expand Down Expand Up @@ -36,7 +36,7 @@ export let basePort: number;
/**
* Set the lowest port to begin any port search from.
*/
export setBasePort(port: number);
export function setBasePort(port: number);

/**
* 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 setHighestPort(port: number);
export function setHighestPort(port: number);

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

0 comments on commit 26951d1

Please sign in to comment.