mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25: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[]
|
type ColumnOrder = CONNECTIONS_TABLE_ACCESSOR_KEY[]
|
||||||
|
|
||||||
enum ActiveTab {
|
enum ActiveTab {
|
||||||
activeConnections = 'activeConnections',
|
activeConnections,
|
||||||
closedConnections = 'closedConnections',
|
closedConnections,
|
||||||
}
|
}
|
||||||
|
|
||||||
const fuzzyFilter: FilterFn<Connection> = (row, columnId, value, addMeta) => {
|
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'
|
import { Connection, ConnectionRawMessage } from '~/types'
|
||||||
|
|
||||||
export type WsMsg = {
|
export type WsMsg = {
|
||||||
connections: ConnectionRawMessage[] | null
|
connections?: ConnectionRawMessage[]
|
||||||
uploadTotal: number
|
uploadTotal: number
|
||||||
downloadTotal: number
|
downloadTotal: number
|
||||||
} | null
|
} | null
|
||||||
|
Loading…
Reference in New Issue
Block a user