123
This commit is contained in:
24
node_modules/@redis/search/dist/commands/SPELLCHECK.d.ts
generated
vendored
Normal file
24
node_modules/@redis/search/dist/commands/SPELLCHECK.d.ts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
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 {};
|
||||
Reference in New Issue
Block a user