tabby/tabby-terminal/src/api/interfaces.ts
2023-04-11 22:53:05 +02:00

31 lines
698 B
TypeScript

import { Profile } from 'tabby-core'
export interface ResizeEvent {
columns: number
rows: number
}
export interface TerminalColorScheme {
name: string
foreground: string
background: string
cursor: string
colors: string[]
selection?: string
selectionForeground?: string
cursorAccent?: string
}
export interface BaseTerminalProfile extends Profile {
terminalColorScheme?: TerminalColorScheme
}
export interface Reconnectable {
reconnect: () => Promise<void>;
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function isReconnectable (object: any): object is Reconnectable {
return 'reconnect' in object
}