Skip to content

Commit

Permalink
fix: #304 missing type JSONPointer internally
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 25, 2023
1 parent 218562d commit e23abbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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<T> = { [pointer: JSONPointer]: T }
export type JSONPointerMap<T> = Record<JSONPointer, T>

export type ClipboardValues = Array<{ key: string; value: JSONValue }>

Expand Down

0 comments on commit e23abbc

Please sign in to comment.