UNPKG

749 BTypeScriptView Raw
1/**
2 * Created by user on 2018/4/19/019.
3 */
4import { IDICT, IOptions } from './core';
5import { TableDictSynonymPanGu } from './synonym.pangu';
6export declare type ArrayTwoOrMore<T> = {
7 0: T;
8 1: T;
9 [n: number]: T;
10 length: number;
11};
12/**
13 * 請注意 這與原版 node-segment 的格式不同
14 *
15 * 原版為一對一 => 錯字,正字
16 * 這裡為一對多 並且順序與原版相反 => 正字,錯字,...以,分隔更多字
17 */
18export declare class TableDictSynonym extends TableDictSynonymPanGu {
19 constructor(type?: string, options?: IOptions, ...argv: any[]);
20 /**
21 * 緩存主KEY
22 */
23 TABLE2: IDICT<string[]>;
24 add(data: ArrayTwoOrMore<string>, skipExists?: boolean): this;
25}
26export default TableDictSynonym;