Skip to content

Commit ed8b058

Browse files
committedAug 25, 2023
fix: #304 ReadonlyValue.svelte wrongly importing two moved types
1 parent 67e772b commit ed8b058

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed
 

‎src/lib/plugins/value/components/ReadonlyValue.svelte

+4-10
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@
66
import SearchResultHighlighter from '../../../components/modes/treemode/highlight/SearchResultHighlighter.svelte'
77
import { getValueClass } from './utils/getValueClass.js'
88
import { addNewLineSuffix } from '$lib/utils/domUtils.js'
9-
import type {
10-
ExtendedSearchResultItem,
11-
JSONParser,
12-
JSONPath,
13-
JSONValue,
14-
OnJSONSelect,
15-
ValueNormalization
16-
} from '$lib/types.js'
9+
import type { ExtendedSearchResultItem, JSONParser, OnJSONSelect, ValueNormalization } from '$lib/types.js'
10+
import type { JSONPath, JSONValue } from 'immutable-json-patch'
1711
1812
export let path: JSONPath
1913
export let value: JSONValue
@@ -26,7 +20,7 @@
2620
2721
$: valueIsUrl = isUrl(value)
2822
29-
function handleValueClick(event) {
23+
function handleValueClick(event: MouseEvent) {
3024
if (typeof value === 'string' && valueIsUrl && event.ctrlKey) {
3125
event.preventDefault()
3226
event.stopPropagation()
@@ -35,7 +29,7 @@
3529
}
3630
}
3731
38-
function handleValueDoubleClick(event) {
32+
function handleValueDoubleClick(event: MouseEvent) {
3933
if (!readOnly) {
4034
event.preventDefault()
4135
onSelect(createValueSelection(path, true))

0 commit comments

Comments
 (0)
Please sign in to comment.