mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
update network interfaces types
This commit is contained in:
@@ -87,6 +87,8 @@ type PortOptionsByKnownProtocol =
|
||||
}
|
||||
type PortOptionsByProtocol = PortOptionsByKnownProtocol | PortOptions
|
||||
|
||||
export type HostKind = "static" | "single" | "multi"
|
||||
|
||||
const hasStringProtocol = object({
|
||||
protocol: string,
|
||||
}).test
|
||||
@@ -95,7 +97,7 @@ export class Host {
|
||||
constructor(
|
||||
readonly options: {
|
||||
effects: Effects
|
||||
kind: "static" | "single" | "multi"
|
||||
kind: HostKind
|
||||
id: string
|
||||
},
|
||||
) {}
|
||||
|
||||
Reference in New Issue
Block a user