@bhsd/codemirror-mediawiki 2.12.5 → 2.12.6
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/main.min.js +12 -12
- package/dist/mediawiki.d.ts +3 -2
- package/dist/mw.min.js +14 -14
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +1 -1
package/dist/mediawiki.d.ts
CHANGED
|
@@ -7,10 +7,11 @@ import { LanguageSupport } from '@codemirror/language';
|
|
|
7
7
|
export type ApiSuggestions = [string, string?][];
|
|
8
8
|
/**
|
|
9
9
|
* 获取维基链接建议
|
|
10
|
-
* @param search
|
|
10
|
+
* @param search 搜索字符串,开头不包含` `
|
|
11
11
|
* @param namespace 命名空间
|
|
12
|
+
* @param subpage 是否为子页面
|
|
12
13
|
*/
|
|
13
|
-
export type ApiSuggest = (search: string, namespace?: number) => ApiSuggestions | Promise<ApiSuggestions>;
|
|
14
|
+
export type ApiSuggest = (search: string, namespace?: number, subpage?: boolean) => ApiSuggestions | Promise<ApiSuggestions>;
|
|
14
15
|
export interface MwConfig {
|
|
15
16
|
readonly tags: Record<string, true>;
|
|
16
17
|
readonly tagModes: Record<string, string>;
|