You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-13 10:02:24 +03:00
16 lines
358 B
TypeScript
16 lines
358 B
TypeScript
export function transformReplyNumber(reply: number): number {
|
|
return reply;
|
|
}
|
|
|
|
export function transformReplyString(reply: string): string {
|
|
return reply;
|
|
}
|
|
|
|
export function transformReplyStringArray(reply: Array<string>): Array<string> {
|
|
return reply;
|
|
}
|
|
|
|
export function transformReplyBoolean(reply: number): boolean {
|
|
return reply === 1;
|
|
}
|