jsmigemo 0.4.7 → 0.4.8

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.
@@ -93,15 +93,16 @@ interface RomajiProcessor {
93
93
  romajiToHiraganaPredictively(romaji: string): RomajiPredictiveResult;
94
94
  }
95
95
 
96
+ type Rxop = [string, string, string, string, string, string, string];
96
97
  declare class Migemo {
97
98
  dict: CompactDictionary | null;
98
- rxop: string[] | null;
99
+ rxop: Rxop | null;
99
100
  processor: RomajiProcessor;
100
101
  constructor();
101
102
  queryAWord(word: string): string;
102
103
  query(word: string): string;
103
104
  setDict(dict: CompactDictionary | null): void;
104
- setRxop(rxop: string[] | null): void;
105
+ setRxop(rxop: Rxop | null): void;
105
106
  setRomajiProcessor(processor: RomajiProcessor): void;
106
107
  parseQuery(query: string): IterableIterator<string>;
107
108
  }
@@ -167,4 +168,4 @@ declare function binarySearchString(a: string[], fromIndex: number, toIndex: num
167
168
  declare function bitCount(i: number): number;
168
169
  declare function numberOfTrailingZeros(i: number): number;
169
170
 
170
- export { BitList, BitVector, CompactDictionary, CompactDictionaryBuilder, CompactHiraganaString, DoubleArray, LOUDSTrie, LOUDSTrieBuilder, Migemo, RomajiPredictiveResult, RomajiProcessor, RomajiProcessor1, RomajiProcessor2, RomanEntry, TernaryRegexGenerator, binarySearch, binarySearchString, binarySearchUint16, bitCount, han2zen_conv, hira2kata_conv, numberOfTrailingZeros, zen2han_conv };
171
+ export { BitList, BitVector, CompactDictionary, CompactDictionaryBuilder, CompactHiraganaString, DoubleArray, LOUDSTrie, LOUDSTrieBuilder, Migemo, RomajiPredictiveResult, RomajiProcessor, RomajiProcessor1, RomajiProcessor2, RomanEntry, Rxop, TernaryRegexGenerator, binarySearch, binarySearchString, binarySearchUint16, bitCount, han2zen_conv, hira2kata_conv, numberOfTrailingZeros, zen2han_conv };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsmigemo",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "migemo on javascript",
5
5
  "type": "module",
6
6
  "main": "dist/jsmigemo.cjs",