@types/memjs
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -40,2 +40,33 @@ // Type definitions for memjs 1.2 | ||
} | ||
export interface ServerOptions { | ||
/** | ||
* Server username for fallback SASL authentication credentials. | ||
*/ | ||
username?: string; | ||
/** | ||
* Server password for fallback SASL authentication credentials. | ||
*/ | ||
password?: string; | ||
/** | ||
* `timeout` in seconds to determine failure for operations. | ||
* @default 0.5 | ||
*/ | ||
timeout?: number; | ||
/** | ||
* `conntimeout` in seconds to connection failure. | ||
* @default 2 * timeout | ||
*/ | ||
conntimeout?: number; | ||
/** | ||
* Whether to enable keep-alive functionality. | ||
* @default false | ||
*/ | ||
keepAlive?: boolean; | ||
/** | ||
* `keepAliveDelay` in seconds to the initial delay before the first keep- | ||
* alive probe is sent on an idle socket. | ||
* @default 30 | ||
*/ | ||
keepAliveDelay?: number; | ||
} | ||
export class Client { | ||
@@ -79,3 +110,3 @@ /** | ||
*/ | ||
static create(serversStr?: string, options?: ClientOptions): Client; | ||
static create(serversStr?: string, options?: ClientOptions | ServerOptions): Client; | ||
@@ -82,0 +113,0 @@ servers: string[]; |
{ | ||
"name": "@types/memjs", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "TypeScript definitions for memjs", | ||
@@ -19,6 +19,7 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/memjs" | ||
}, | ||
@@ -29,4 +30,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "aeb8151d47549f90dc0888b094dead94a8c07c398594c47e8b32e17d84125553", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "d00b118e4921fc232cf5ce350b78f70312f2e39c9e2917093e6894a723283f7f", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for memjs ( http://github.com/memcachier/memjs ). | ||
This package contains type definitions for memjs (http://github.com/memcachier/memjs). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memjs | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memjs. | ||
Additional Details | ||
* Last updated: Tue, 05 Feb 2019 01:15:44 GMT | ||
* Dependencies: @types/node | ||
### Additional Details | ||
* Last updated: Wed, 17 Mar 2021 07:00:42 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Zongmin Lei <https://github.com/leizongmin>, BendingBender <https://github.com/BendingBender>. | ||
These definitions were written by [Zongmin Lei](https://github.com/leizongmin), and [BendingBender](https://github.com/BendingBender). |
Sorry, the diff of this file is not supported yet
17080
439