wip(app): line selection

This commit is contained in:
Adam 2026-01-21 05:27:52 -06:00
commit 0ce0cacb28
7 changed files with 628 additions and 58 deletions

View file

@ -1,10 +1,11 @@
import { DiffLineAnnotation, FileContents, FileDiffOptions } from "@pierre/diffs"
import { DiffLineAnnotation, FileContents, FileDiffOptions, type SelectedLineRange } from "@pierre/diffs"
import { ComponentProps } from "solid-js"
export type DiffProps<T = {}> = FileDiffOptions<T> & {
before: FileContents
after: FileContents
annotations?: DiffLineAnnotation<T>[]
selectedLines?: SelectedLineRange | null
onRendered?: () => void
class?: string
classList?: ComponentProps<"div">["classList"]