Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 973af71

Browse files
committed
fix: export public interfaces
1 parent 8d66b70 commit 973af71

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/hoverifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { FileSpec, LineOrPositionOrRange, RepoSpec, ResolvedRevSpec, RevSpec } f
3434

3535
export { HoveredToken }
3636

37-
interface HoverifierOptions {
37+
export interface HoverifierOptions {
3838
/**
3939
* Emit the HoverOverlay element on this after it was rerendered when its content changed and it needs to be repositioned.
4040
*/
@@ -118,7 +118,7 @@ export interface PositionJump {
118118
/**
119119
* HoverifyOptions that need to be included internally with every event
120120
*/
121-
interface EventOptions {
121+
export interface EventOptions {
122122
resolveContext: ContextResolver
123123
dom: DOMFunctions
124124
}

src/token_position.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export type DiffPart = 'base' | 'head' | null
217217
*
218218
* 1-indexed
219219
*/
220-
interface Line {
220+
export interface Line {
221221
line: number
222222
}
223223

@@ -229,7 +229,7 @@ export interface HoveredToken {
229229
part?: DiffPart
230230
}
231231

232-
interface LocateTargetOptions extends DOMFunctions {
232+
export interface LocateTargetOptions extends DOMFunctions {
233233
ignoreFirstChar?: boolean
234234
}
235235

@@ -294,7 +294,7 @@ export function locateTarget(
294294
return { line }
295295
}
296296

297-
interface GetCodeElementsInRangeOptions extends Pick<DOMFunctions, 'getCodeElementFromLineNumber'> {
297+
export interface GetCodeElementsInRangeOptions extends Pick<DOMFunctions, 'getCodeElementFromLineNumber'> {
298298
codeView: HTMLElement
299299
position?: LineOrPositionOrRange
300300
part?: DiffPart

0 commit comments

Comments
 (0)