chore(connections): fix connections type definition

This commit is contained in:
kunish 2023-09-15 13:37:11 +08:00
parent b3c924e33b
commit c607a31070
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
2 changed files with 3 additions and 3 deletions

View File

@ -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) => {

View File

@ -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