6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
import type { CommandParameter } from "./types";
|
|
export declare function sanitizeArgs(commandName: string, args: CommandParameter[]): string[];
|
|
export interface CommandTraceContext {
|
|
command: string;
|
|
args: string[];
|
|
database: number;
|
|
serverAddress: string;
|
|
serverPort: number | undefined;
|
|
}
|
|
export interface BatchOperationContext {
|
|
batchMode: "MULTI";
|
|
batchSize: number;
|
|
database: number;
|
|
serverAddress: string;
|
|
serverPort: number | undefined;
|
|
}
|
|
export interface ConnectTraceContext {
|
|
serverAddress: string;
|
|
serverPort: number | undefined;
|
|
connectionEpoch: number;
|
|
}
|
|
declare type CommandContext = CommandTraceContext;
|
|
export declare function traceCommand<T>(fn: () => Promise<T>, contextFactory: () => CommandContext): Promise<T>;
|
|
export declare function traceBatch<T>(fn: () => Promise<T>, contextFactory: () => BatchOperationContext): Promise<T>;
|
|
export declare function traceConnect<T>(fn: () => Promise<T>, contextFactory: () => ConnectTraceContext): Promise<T>;
|
|
export {};
|