mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Fix rethinkdb connection SSL options
This commit is contained in:
Vendored
+16
-17
@@ -13,6 +13,8 @@
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
import { ConnectionOptions as TLSConnectionOptions } from "tls";
|
||||
|
||||
/**
|
||||
* https://rethinkdb.com/api/javascript/
|
||||
*/
|
||||
@@ -80,7 +82,7 @@ declare module "rethinkdb" {
|
||||
}
|
||||
|
||||
interface Row extends Expression<any> {
|
||||
(name: string): Expression<any>;
|
||||
(name: string): Expression<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,14 +114,11 @@ declare module "rethinkdb" {
|
||||
* there is only one option available, and if the `ssl` option is specified,
|
||||
* this key is required.
|
||||
*/
|
||||
ssl?: {
|
||||
/** A list of Node.js `Buffer` objects containing SSL CA certificates */
|
||||
ca: Buffer[];
|
||||
};
|
||||
ssl?: TLSConnectionOptions;
|
||||
}
|
||||
|
||||
interface NoReplyWait {
|
||||
noreplyWait: boolean;
|
||||
noreplyWait: boolean;
|
||||
}
|
||||
|
||||
interface Connection {
|
||||
@@ -241,8 +240,8 @@ declare module "rethinkdb" {
|
||||
|
||||
filter(rql: ExpressionFunction<boolean>): Sequence;
|
||||
filter(rql: Expression<boolean>): Sequence;
|
||||
filter(obj: { [key: string]: any }): Sequence;
|
||||
|
||||
filter(obj: { [key: string]: any }): Sequence;
|
||||
|
||||
/**
|
||||
* Turn a query into a changefeed, an infinite stream of objects representing
|
||||
* changes to the query’s results as they occur. A changefeed may return changes
|
||||
@@ -346,7 +345,7 @@ declare module "rethinkdb" {
|
||||
}
|
||||
|
||||
interface BooleanMap {
|
||||
[ key: string ]: Boolean | BooleanMap;
|
||||
[key: string]: Boolean | BooleanMap;
|
||||
}
|
||||
|
||||
interface Expression<T> extends Writeable, Operation<T>, HasFields<Expression<number>> {
|
||||
@@ -490,21 +489,21 @@ declare module "rethinkdb" {
|
||||
interface Sort { }
|
||||
|
||||
interface ReqlType {
|
||||
$reql_type$: string;
|
||||
$reql_type$: string;
|
||||
}
|
||||
|
||||
interface Time extends ReqlType {
|
||||
$reql_type$: "TIME";
|
||||
epoch_time: number;
|
||||
timezone: string;
|
||||
$reql_type$: "TIME";
|
||||
epoch_time: number;
|
||||
timezone: string;
|
||||
}
|
||||
|
||||
interface Binary extends ReqlType {
|
||||
$reql_type$: "BINARY";
|
||||
data: string;
|
||||
$reql_type$: "BINARY";
|
||||
data: string;
|
||||
}
|
||||
|
||||
interface ReqlError extends Error {}
|
||||
interface ReqlError extends Error { }
|
||||
|
||||
/**
|
||||
* An error has occurred within the driver. This may be a driver bug, or it may
|
||||
@@ -512,5 +511,5 @@ declare module "rethinkdb" {
|
||||
*
|
||||
* See https://www.rethinkdb.com/docs/error-types/
|
||||
*/
|
||||
interface ReqlDriverError extends ReqlError {}
|
||||
interface ReqlDriverError extends ReqlError { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user