Skip to content

Type Alias: Port ​

Port = number & Brand.Brand<"Port">

Defined in: types.ts:34

Branded type for port numbers. Valid range: 1 to 65535.

Example ​

typescript
const https = Port(443);
const http = Port(80);