mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
chore(connections): fix connections type definition
This commit is contained in:
parent
b3c924e33b
commit
c607a31070
@ -49,8 +49,8 @@ type ColumnVisibility = Partial<Record<CONNECTIONS_TABLE_ACCESSOR_KEY, boolean>>
|
||||
type ColumnOrder = CONNECTIONS_TABLE_ACCESSOR_KEY[]
|
||||
|
||||
enum ActiveTab {
|
||||
activeConnections = 'activeConnections',
|
||||
closedConnections = 'closedConnections',
|
||||
activeConnections,
|
||||
closedConnections,
|
||||
}
|
||||
|
||||
const fuzzyFilter: FilterFn<Connection> = (row, columnId, value, addMeta) => {
|
||||
|
@ -4,7 +4,7 @@ import { CONNECTIONS_TABLE_MAX_CLOSED_ROWS } from '~/constants'
|
||||
import { Connection, ConnectionRawMessage } from '~/types'
|
||||
|
||||
export type WsMsg = {
|
||||
connections: ConnectionRawMessage[] | null
|
||||
connections?: ConnectionRawMessage[]
|
||||
uploadTotal: number
|
||||
downloadTotal: number
|
||||
} | null
|
||||
|
Loading…
Reference in New Issue
Block a user