@@ -61,13 +61,13 @@ provides a JSON schema enabled autocomplete extension for codemirror
61
61
62
62
#### Defined in
63
63
64
- [ json-completion.ts:820] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-completion.ts#L820 )
64
+ [ json-completion.ts:820] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-completion.ts#L820 )
65
65
66
66
---
67
67
68
68
### jsonSchemaHover
69
69
70
- ▸ ** jsonSchemaHover** (` schema ` , ` options? ` ): (` view ` : ` EditorView ` , ` pos ` : ` number ` , ` side ` : ` 1 ` \| ` -1 ` ) => ` Promise ` <` null ` \| ` Tooltip ` \>
70
+ ▸ ** jsonSchemaHover** (` schema ` , ` options? ` ): (` view ` : ` EditorView ` , ` pos ` : ` number ` , ` side ` : ` Side ` ) => ` Promise ` <` null ` \| ` Tooltip ` \>
71
71
72
72
provides a JSON schema enabled tooltip extension for codemirror
73
73
@@ -90,15 +90,15 @@ provides a JSON schema enabled tooltip extension for codemirror
90
90
| :----- | :----------- |
91
91
| ` view ` | ` EditorView ` |
92
92
| ` pos ` | ` number ` |
93
- | ` side ` | ` 1 ` \| ` -1 ` |
93
+ | ` side ` | ` Side ` |
94
94
95
95
##### Returns
96
96
97
97
` Promise ` <` null ` \| ` Tooltip ` \>
98
98
99
99
#### Defined in
100
100
101
- [ json-hover.ts:24 ] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-hover.ts#L24 )
101
+ [ json-hover.ts:39 ] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-hover.ts#L39 )
102
102
103
103
---
104
104
@@ -133,7 +133,7 @@ Helper for simpler class instantiaton
133
133
134
134
#### Defined in
135
135
136
- [ json-validation.ts:35] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-validation.ts#L35 )
136
+ [ json-validation.ts:35] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-validation.ts#L35 )
137
137
138
138
## Utilities
139
139
@@ -160,7 +160,7 @@ this could be useful for other things later!
160
160
161
161
#### Defined in
162
162
163
- [ utils/jsonPointers.ts:37] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/utils/jsonPointers.ts#L37 )
163
+ [ utils/jsonPointers.ts:37] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/utils/jsonPointers.ts#L37 )
164
164
165
165
---
166
166
@@ -183,7 +183,7 @@ retrieve a Map of all the json pointers in a document
183
183
184
184
#### Defined in
185
185
186
- [ utils/jsonPointers.ts:98] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/utils/jsonPointers.ts#L98 )
186
+ [ utils/jsonPointers.ts:98] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/utils/jsonPointers.ts#L98 )
187
187
188
188
---
189
189
@@ -199,7 +199,7 @@ retrieve a JSON pointer for a given position in the editor
199
199
| :------ | :------------------------------ | :------------ |
200
200
| ` state ` | ` EditorState ` | ` undefined ` |
201
201
| ` pos ` | ` number ` | ` undefined ` |
202
- | ` side ` | ` 1 ` \| ` -1 ` | ` undefined ` |
202
+ | ` side ` | ` Side ` | ` undefined ` |
203
203
| ` mode ` | [ ` JSONMode ` ] ( index.md#jsonmode ) | ` "json4" ` |
204
204
205
205
#### Returns
@@ -208,7 +208,7 @@ retrieve a JSON pointer for a given position in the editor
208
208
209
209
#### Defined in
210
210
211
- [ utils/jsonPointers.ts:81] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/utils/jsonPointers.ts#L81 )
211
+ [ utils/jsonPointers.ts:81] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/utils/jsonPointers.ts#L81 )
212
212
213
213
---
214
214
@@ -235,7 +235,7 @@ Mimics the behavior of `json-source-map`'s `parseJSONDocument` function using co
235
235
236
236
#### Defined in
237
237
238
- [ utils/parseJSONDocument.ts:23] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/utils/parseJSONDocument.ts#L23 )
238
+ [ utils/parseJSONDocument.ts:23] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/utils/parseJSONDocument.ts#L23 )
239
239
240
240
---
241
241
@@ -262,7 +262,7 @@ Return parsed data and json pointers for a given codemirror EditorState
262
262
263
263
#### Defined in
264
264
265
- [ utils/parseJSONDocument.ts:9] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/utils/parseJSONDocument.ts#L9 )
265
+ [ utils/parseJSONDocument.ts:9] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/utils/parseJSONDocument.ts#L9 )
266
266
267
267
## Type Aliases
268
268
@@ -279,7 +279,7 @@ Return parsed data and json pointers for a given codemirror EditorState
279
279
280
280
#### Defined in
281
281
282
- [ json-hover.ts:9 ] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-hover.ts#L9 )
282
+ [ json-hover.ts:12 ] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-hover.ts#L12 )
283
283
284
284
---
285
285
@@ -289,7 +289,7 @@ Return parsed data and json pointers for a given codemirror EditorState
289
289
290
290
#### Defined in
291
291
292
- [ json-hover.ts:11 ] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-hover.ts#L11 )
292
+ [ json-hover.ts:14 ] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-hover.ts#L14 )
293
293
294
294
---
295
295
@@ -299,14 +299,16 @@ Return parsed data and json pointers for a given codemirror EditorState
299
299
300
300
#### Type declaration
301
301
302
- | Name | Type |
303
- | :------------- | :----------------------------------------------------------------------- |
304
- | ` formatHover? ` | (` data ` : [ ` FoundCursorData ` ] ( index.md#foundcursordata ) ) => ` HTMLElement ` |
305
- | ` mode? ` | [ ` JSONMode ` ] ( index.md#jsonmode ) |
302
+ | Name | Type |
303
+ | :--------------- | :---------------------------------------------------------------------- |
304
+ | ` formatHover? ` | (` data ` : ` HoverTexts ` ) => ` HTMLElement ` |
305
+ | ` getHoverTexts? ` | (` data ` : [ ` FoundCursorData ` ] ( index.md#foundcursordata ) ) => ` HoverTexts ` |
306
+ | ` mode? ` | [ ` JSONMode ` ] ( index.md#jsonmode ) |
307
+ | ` parser? ` | (` text ` : ` string ` ) => ` any ` |
306
308
307
309
#### Defined in
308
310
309
- [ json-hover.ts:13 ] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-hover.ts#L13 )
311
+ [ json-hover.ts:18 ] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-hover.ts#L18 )
310
312
311
313
---
312
314
@@ -316,7 +318,7 @@ Return parsed data and json pointers for a given codemirror EditorState
316
318
317
319
#### Defined in
318
320
319
- [ utils/jsonPointers.ts:8] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/utils/jsonPointers.ts#L8 )
321
+ [ utils/jsonPointers.ts:8] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/utils/jsonPointers.ts#L8 )
320
322
321
323
---
322
324
@@ -333,7 +335,7 @@ Return parsed data and json pointers for a given codemirror EditorState
333
335
334
336
#### Defined in
335
337
336
- [ types.ts:4] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/types.ts#L4 )
338
+ [ types.ts:4] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/types.ts#L4 )
337
339
338
340
---
339
341
@@ -352,7 +354,7 @@ Return parsed data and json pointers for a given codemirror EditorState
352
354
353
355
#### Defined in
354
356
355
- [ types.ts:9] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/types.ts#L9 )
357
+ [ types.ts:9] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/types.ts#L9 )
356
358
357
359
---
358
360
@@ -362,7 +364,7 @@ Return parsed data and json pointers for a given codemirror EditorState
362
364
363
365
#### Defined in
364
366
365
- [ types.ts:16 ] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/types.ts#L16 )
367
+ [ types.ts:18 ] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/types.ts#L18 )
366
368
367
369
---
368
370
@@ -379,4 +381,4 @@ Return parsed data and json pointers for a given codemirror EditorState
379
381
380
382
#### Defined in
381
383
382
- [ json-validation.ts:24] ( https://github.com/acao/codemirror-json-schema/blob/fea8ea7 /src/json-validation.ts#L24 )
384
+ [ json-validation.ts:24] ( https://github.com/acao/codemirror-json-schema/blob/31d3cd5 /src/json-validation.ts#L24 )
0 commit comments