tyoe changes

This commit is contained in:
Matt Hill
2024-01-18 16:12:37 -07:00
parent 27127f58d4
commit 009f79e289
7 changed files with 17 additions and 30 deletions

View File

@@ -87,7 +87,7 @@ type PortOptionsByKnownProtocol =
}
type PortOptionsByProtocol = PortOptionsByKnownProtocol | PortOptions
const hasStringProtocal = object({
const hasStringProtocol = object({
protocol: string,
}).test
@@ -104,7 +104,7 @@ export class Host {
internalPort: number,
options: PortOptionsByProtocol,
): Promise<Origin<this>> {
if (hasStringProtocal(options)) {
if (hasStringProtocol(options)) {
return await this.bindPortForKnown(options, internalPort)
} else {
return await this.bindPortForUnknown(internalPort, options)

View File

@@ -18,7 +18,6 @@ export class Origin<T extends Host> {
options: this.options,
suffix: `${path}${qp}`,
username,
scheme: this.options.scheme,
}
}
}