Merge pull request #12366 from overleaf/ii-react-history-context

[web] Add context to history

GitOrigin-RevId: bc504994c50c0e7abe8181a671357d5db59a3343
This commit is contained in:
ilkin-overleaf
2023-03-30 08:03:43 +00:00
committed by Copybot
parent 0227f186c5
commit 95c8a1aeea
11 changed files with 345 additions and 12 deletions
+23
View File
@@ -0,0 +1,23 @@
import { Nullable } from '../utils'
type Docs = Record<string, unknown>
interface Range {
fromV: Nullable<unknown>
toV: Nullable<unknown>
}
interface HoveredRange {
fromV: Nullable<unknown>
toV: Nullable<unknown>
}
export interface Selection {
docs: Docs
pathname: Nullable<string>
range: Range
hoveredRange: HoveredRange
diff: Nullable<unknown>
files: unknown[]
file: Nullable<unknown>
}