1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-17 19:41:06 +03:00

fix build

This commit is contained in:
leibale
2021-07-12 13:50:51 -04:00
parent e2ed932802
commit b855150009
5 changed files with 703 additions and 1082 deletions

View File

@@ -1,7 +1,7 @@
const symbol = Symbol('Command Options');
export type CommandOptions<T> = T & {
readonly [symbol]: true
readonly [symbol]: true;
};
export function commandOptions<T>(options: T): CommandOptions<T> {

View File

@@ -5,7 +5,7 @@ import { RedisReply } from './commands';
export interface QueueCommandOptions {
asap?: boolean;
signal?: AbortSignal;
signal?: any; // TODO: TODO: `AbortSignal` type is incorrect
chainId?: symbol;
}
@@ -13,7 +13,7 @@ interface CommandWaitingToBeSent extends CommandWaitingForReply {
encodedCommand: string;
chainId?: symbol;
abort?: {
signal: AbortSignal;
signal: any; // TODO: `AbortSignal` type is incorrect
listener(): void;
};
}

View File

@@ -2,6 +2,7 @@ import EventEmitter from 'events';
import net from 'net';
import tls from 'tls';
import { setTimeout } from 'timers/promises';
import { URL } from 'url';
interface RedisSocketCommonOptions {
username?: string;

1766
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -32,17 +32,17 @@
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/mocha": "^8.2.2",
"@types/node": "^15.12.5",
"@types/mocha": "^8.2.3",
"@types/node": "^16.3.1",
"@types/sinon": "^10.0.2",
"@types/which": "^2.0.0",
"@types/yallist": "^4.0.0",
"mocha": "^9.0.1",
"@types/which": "^2.0.1",
"@types/yallist": "^4.0.1",
"mocha": "^9.0.2",
"nyc": "^15.1.0",
"release-it": "^14.10.0",
"sinon": "^11.1.1",
"source-map-support": "^0.5.19",
"ts-node": "^10.0.0",
"ts-node": "^10.1.0",
"typescript": "^4.3.5",
"which": "^2.0.2"
},