-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinterfaces.ts
More file actions
35 lines (32 loc) · 729 Bytes
/
interfaces.ts
File metadata and controls
35 lines (32 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { createClient, RedisClientOptions } from "redis";
export interface RedisTaggingOptions {
nsprefix?: string;
port?: number;
host?: string;
options?: RedisClientOptions;
client?: ReturnType<typeof createClient>;
}
export type IInputOptions = {
bucket: string | number;
id: string | number;
tags: (string | number)[];
score: string | number;
limit: number;
offset: string | number;
withscores: string | number;
amount: string | number;
order: "asc" | "desc";
type: "union" | "inter";
};
export type IValidatedOptions = {
bucket: string;
id: string;
tags: string[];
score: number;
limit: number;
withscores: number;
amount: number;
offset: number;
type: "union" | "inter";
order: "asc" | "rev";
};