@bhsd/codemirror-mediawiki 2.21.0 → 2.21.1

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/dist/hover.d.ts CHANGED
@@ -13,6 +13,12 @@ export declare const getLSP: (view: EditorView) => LanguageServiceBase | undefin
13
13
  * @param index 索引
14
14
  */
15
15
  export declare const indexToPos: (doc: Text, index: number) => Position;
16
+ /**
17
+ * 将位置转换为索引
18
+ * @param doc Text 实例
19
+ * @param pos 位置
20
+ */
21
+ export declare const posToIndex: (doc: Text, pos: Position) => number;
16
22
  declare const _default: import("@codemirror/state").Extension & {
17
23
  active: import("@codemirror/state").StateField<readonly Tooltip[]>;
18
24
  };