mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix to f89faea: wrap exports into namespace
+ Changed key in select() method to any[]
This commit is contained in:
parent
f89faea7bb
commit
3d3fee9d5c
26
types/tarantool-driver/index.d.ts
vendored
26
types/tarantool-driver/index.d.ts
vendored
@ -5,20 +5,22 @@
|
||||
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
export interface TarantoolOptions {
|
||||
host?: string;
|
||||
port?: number;
|
||||
username?: string;
|
||||
password?: string;
|
||||
reserveHosts?: string[];
|
||||
beforeReserve?: number;
|
||||
timeout?: number;
|
||||
retryStrategy?: (times: number) => number;
|
||||
lazyConnect?: boolean;
|
||||
declare namespace TarantoolConnection {
|
||||
export interface TarantoolOptions {
|
||||
host?: string;
|
||||
port?: number;
|
||||
username?: string;
|
||||
password?: string;
|
||||
reserveHosts?: string[];
|
||||
beforeReserve?: number;
|
||||
timeout?: number;
|
||||
retryStrategy?: (times: number) => number;
|
||||
lazyConnect?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare class TarantoolConnection extends EventEmitter {
|
||||
constructor(options: TarantoolOptions);
|
||||
constructor(options: TarantoolConnection.TarantoolOptions);
|
||||
|
||||
/* Connection */
|
||||
|
||||
@ -35,7 +37,7 @@ declare class TarantoolConnection extends EventEmitter {
|
||||
select(spaceId: number | string,
|
||||
indexId: number | string,
|
||||
limit: number, offset: number,
|
||||
iterator: string, key: string | string[]): Promise<any>;
|
||||
iterator: string, key: any[]): Promise<any>;
|
||||
|
||||
delete(spaceId: number | string,
|
||||
indexId: number | string,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user