mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
More jsdocs
This commit is contained in:
15
types/zeromq/index.d.ts
vendored
15
types/zeromq/index.d.ts
vendored
@@ -218,15 +218,28 @@ export interface CurveKeyPair {
|
||||
secret: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the ZeroMQ version.
|
||||
*/
|
||||
export let version: string;
|
||||
|
||||
export let types: SocketTypes;
|
||||
export let options: SocketOptions;
|
||||
|
||||
/**
|
||||
* Creates a ZeroMQ socket of the specified type.
|
||||
* @return {Socket} The created socket in an unconnected state.
|
||||
*/
|
||||
export function socket(type: string|number, options?: any): Socket;
|
||||
|
||||
/**
|
||||
* Creates a ZeroMQ socket of the specified type.
|
||||
* @return {Socket} The created socket in an unconnected state.
|
||||
*/
|
||||
export function createSocket(type: string, options?: any): Socket;
|
||||
|
||||
/**
|
||||
* Generates a CurveZMQ (Curve25519) key pair.
|
||||
* @return {CurveKeyPair} The public and secret portions of the key..
|
||||
* @return {CurveKeyPair} The public and secret portions of the key.
|
||||
*/
|
||||
export function curveKeypair(): CurveKeyPair;
|
||||
|
||||
Reference in New Issue
Block a user