2
0
Files
bot/packages/variables/types.ts
2024-08-28 18:10:49 +02:00

25 lines
518 B
TypeScript

export type Variable = {
id: string
name: string
value?: string | (string | null)[] | null | undefined
isSessionVariable?: boolean
}
export type VariableWithValue = Omit<Variable, 'value'> & {
value: string | (string | null)[]
}
export type VariableWithUnknowValue = Omit<Variable, 'value'> & {
value?: unknown
}
export type SetVariableHistoryItem = {
resultId: string
index: number
blockId: string
variableId: string
value: string | (string | null)[] | null
}
export type SessionState = any