tw5-typed 0.3.0 → 0.3.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/package.json +1 -1
- package/src/utils/index.d.ts +16 -1
package/package.json
CHANGED
package/src/utils/index.d.ts
CHANGED
|
@@ -318,7 +318,7 @@ declare module 'tiddlywiki' {
|
|
|
318
318
|
* Parse a string array from a bracketted list. For example `OneTiddler [[Another Tiddler]] LastOne`
|
|
319
319
|
* @zh
|
|
320
320
|
* 从一个带括号的列表中解析一个字符串数组。例如,`OneTiddler [[Another Tiddler]] LastOne`
|
|
321
|
-
*
|
|
321
|
+
*
|
|
322
322
|
* @returns {string[]} An array of tiddler titles. null if input is not string or string array. This won't happened in TS.
|
|
323
323
|
*/
|
|
324
324
|
parseStringArray: (
|
|
@@ -457,5 +457,20 @@ declare module 'tiddlywiki' {
|
|
|
457
457
|
context: IEvalContent,
|
|
458
458
|
filename: string,
|
|
459
459
|
) => unknown;
|
|
460
|
+
/**
|
|
461
|
+
* Transliterate string to ASCII
|
|
462
|
+
* (Some pairs taken from http://semplicewebsites.com/ removing-accents-javascript)
|
|
463
|
+
*/
|
|
464
|
+
transliterationPairs: Record<string, string>;
|
|
465
|
+
/**
|
|
466
|
+
* Remove any of the characters that are illegal in Windows filenames
|
|
467
|
+
* See `$tw.utils.transliterationPairs` for the list of replacements
|
|
468
|
+
*/
|
|
469
|
+
transliterate: (str: string) => string;
|
|
470
|
+
/**
|
|
471
|
+
* Remove any of the characters that are illegal in Windows filenames
|
|
472
|
+
* See `$tw.utils.transliterationPairs` for the list of replacements
|
|
473
|
+
*/
|
|
474
|
+
transliterateToSafeASCII: (str: string) => string;
|
|
460
475
|
}
|
|
461
476
|
}
|