Files
windmill/frontend/src/lib/components/diff_drawer.ts
T
2026-05-27 16:36:44 +02:00

25 lines
512 B
TypeScript

import type { Value } from '$lib/utils'
export type DiffDrawerDiff =
| {
mode: 'normal'
deployed: Value
draft?: Value | undefined
current: Value
defaultDiffType?: 'deployed' | 'draft'
button?: { text: string; onClick: () => void }
}
| {
mode: 'simple'
original: Value
current: Value
title: string
button?: { text: string; onClick: () => void }
}
export interface DiffDrawerI {
openDrawer: () => void
closeDrawer: () => void
setDiff: (diff: DiffDrawerDiff) => void
}