You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
702 B
24 lines
702 B
interface SpellCheckTerms {
|
|
mode: 'INCLUDE' | 'EXCLUDE';
|
|
dictionary: string;
|
|
}
|
|
interface SpellCheckOptions {
|
|
DISTANCE?: number;
|
|
TERMS?: SpellCheckTerms | Array<SpellCheckTerms>;
|
|
DIALECT?: number;
|
|
}
|
|
export declare function transformArguments(index: string, query: string, options?: SpellCheckOptions): Array<string>;
|
|
type SpellCheckRawReply = Array<[
|
|
_: string,
|
|
term: string,
|
|
suggestions: Array<[score: string, suggestion: string]>
|
|
]>;
|
|
type SpellCheckReply = Array<{
|
|
term: string;
|
|
suggestions: Array<{
|
|
score: number;
|
|
suggestion: string;
|
|
}>;
|
|
}>;
|
|
export declare function transformReply(rawReply: SpellCheckRawReply): SpellCheckReply;
|
|
export {};
|
|
|