wip(app): line selection
This commit is contained in:
parent
640d1f1ecc
commit
0ce0cacb28
7 changed files with 628 additions and 58 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue