Skip to content

Commit

Permalink
Rename ListenOpts interface to ListenOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 27, 2023
1 parent 143b531 commit 2964d88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-readers-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nxjs-runtime': patch
---

Rename `ListenOpts` interface to `ListenOptions`
4 changes: 2 additions & 2 deletions packages/runtime/src/switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface Stats {
*
* @see {@link listen | `Switch.listen()`}
*/
export interface ListenOpts {
export interface ListenOptions {
/**
* The IP address of the network interface to bind to.
*
Expand Down Expand Up @@ -222,7 +222,7 @@ export function connect<Host extends string, Port extends string>(
);
}

export function listen(opts: ListenOpts) {
export function listen(opts: ListenOptions) {
const { ip = '0.0.0.0', port, accept } = opts;
const server = createServer(ip, port);
if (accept) {
Expand Down

0 comments on commit 2964d88

Please sign in to comment.