forked from redis/node-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace empty "transformReply" functions with typescript "declare"
- Loading branch information
Showing
174 changed files
with
472 additions
and
1,051 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { TransformArgumentsReply } from '.'; | ||
import { pushVerdictArguments, transformReplyNumber } from './generic-transformers'; | ||
import { pushVerdictArguments } from './generic-transformers'; | ||
|
||
export function transformArguments(username: string | Array<string>): TransformArgumentsReply { | ||
return pushVerdictArguments(['ACL', 'DELUSER'], username); | ||
} | ||
|
||
export const transformReply = transformReplyNumber; | ||
export declare const transformReply: (reply: number) => number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyStringArray } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ACL', 'LIST']; | ||
} | ||
|
||
export const transformReply = transformReplyStringArray; | ||
export declare function transformReply(): Array<string>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ACL', 'LOAD']; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ACL', 'LOG', 'RESET']; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ACL', 'SAVE']; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { TransformArgumentsReply } from '.'; | ||
import { pushVerdictArguments, transformReplyString } from './generic-transformers'; | ||
import { pushVerdictArguments } from './generic-transformers'; | ||
|
||
export function transformArguments(username: string, rule: string | Array<string>): TransformArgumentsReply { | ||
return pushVerdictArguments(['ACL', 'SETUSER', username], rule); | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyStringArray } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ACL', 'USERS']; | ||
} | ||
|
||
export const transformReply = transformReplyStringArray; | ||
export declare function transformReply(): Array<string>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ACL', 'WHOAMI']; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export const FIRST_KEY_INDEX = 1; | ||
|
||
export function transformArguments(key: string, value: string): Array<string> { | ||
return ['APPEND', key, value]; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['ASKING']; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { transformReplyString } from './generic-transformers'; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['BGREWRITEAOF']; | ||
} | ||
|
||
export const transformReply = transformReplyString; | ||
export declare function transformReply(): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { transformReplyNumberNull } from './generic-transformers'; | ||
|
||
export const FIRST_KEY_INDEX = 1; | ||
|
||
export function transformArguments(source: string, destination: string, timeout: number): Array<string> { | ||
return ['BRPOPLPUSH', source, destination, timeout.toString()]; | ||
} | ||
|
||
export const transformReply = transformReplyNumberNull; | ||
export declare function transformReply(): number | null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { transformReplyNumber } from './generic-transformers'; | ||
|
||
export const IS_READ_ONLY = true; | ||
|
||
export function transformArguments(): Array<string> { | ||
return ['CLIENT', 'ID']; | ||
} | ||
|
||
export const transformReply = transformReplyNumber; | ||
export declare function transformReply(): number; |
Oops, something went wrong.