nose-pluto/src/shared/types.ts

11 lines
237 B
TypeScript

export type Message = {
session?: string
id?: string
type: "input" | "output" | "commands" | "error"
data: CommandResult | string | string[]
}
export type CommandResult = {
status: "ok" | "error"
output: string
}