@codemirror/view 6.2.2 → 6.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +219 -216
- package/dist/index.d.ts +2 -2
- package/dist/index.js +219 -216
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -736,7 +736,7 @@ declare class EditorView {
|
|
|
736
736
|
know you registered a given plugin, it is recommended to check
|
|
737
737
|
the return value of this method.
|
|
738
738
|
*/
|
|
739
|
-
plugin<T>(plugin: ViewPlugin<T>): T | null;
|
|
739
|
+
plugin<T extends PluginValue>(plugin: ViewPlugin<T>): T | null;
|
|
740
740
|
/**
|
|
741
741
|
The top position of the document, in screen coordinates. This
|
|
742
742
|
may be negative when the editor is scrolled down. Points
|
|
@@ -1386,7 +1386,7 @@ declare class MatchDecorator {
|
|
|
1386
1386
|
The decoration to apply to matches, either directly or as a
|
|
1387
1387
|
function of the match.
|
|
1388
1388
|
*/
|
|
1389
|
-
decoration?: Decoration | ((match: RegExpExecArray, view: EditorView, pos: number) => Decoration);
|
|
1389
|
+
decoration?: Decoration | ((match: RegExpExecArray, view: EditorView, pos: number) => Decoration | null);
|
|
1390
1390
|
/**
|
|
1391
1391
|
Customize the way decorations are added for matches. This
|
|
1392
1392
|
function, when given, will be called for matches and should
|