SerialPortConnectionState type

Specifies whether the port is currently active.

type SerialPortConnectionState = "active" | "inactive"