diff --git a/src/lib/types.ts b/src/lib/types.ts index 1e68ad05..663c61fd 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -1,4 +1,4 @@ -import type { JSONPatchDocument, JSONPath, JSONValue } from 'immutable-json-patch' +import type { JSONPatchDocument, JSONPath, JSONValue, JSONPointer } from 'immutable-json-patch' import type { SvelteComponent } from 'svelte' import type { IconDefinition } from '@fortawesome/free-solid-svg-icons' @@ -112,8 +112,7 @@ export interface TextSelection { export type JSONEditorSelection = JSONSelection | TextSelection -type JSONPointer = string // Would like to use "import type { JSONPointer } from 'immutable-json-patch'" but that gives compile warnings -export type JSONPointerMap = { [pointer: JSONPointer]: T } +export type JSONPointerMap = Record export type ClipboardValues = Array<{ key: string; value: JSONValue }>