@bfchain/bnrtc2-client-typings
Advanced tools
Comparing version 0.0.1-alpha.2 to 0.0.1-alpha.3
@@ -7,5 +7,7 @@ /// <reference lib="dom" /> | ||
} | ||
interface Bnrtc2Clinet { | ||
close(code?: number, reason?: string): Promise<boolean>; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): void; | ||
interface Bnrtc2Client { | ||
onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
onError: import('@bfcs/util-evt').Attacher<Error>; | ||
close(code?: number, reason?: string): void; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): Promise<void>; | ||
onData(dport: string, handler: Bnrtc2DataHandler): void; | ||
@@ -44,4 +46,4 @@ offData(dport: string, handler?: Bnrtc2DataHandler): void; | ||
} | ||
var bnrtcGlobal: Global; | ||
var bnrtc2Global: Global; | ||
} | ||
//# sourceMappingURL=@types.d.ts.map |
@@ -9,8 +9,8 @@ export declare const enum READY_STATE { | ||
export declare const enum RESULT_CODE { | ||
SUCCESS = 200, | ||
FAILED = 400, | ||
OFFLINE = 401, | ||
DPORT_CONFLICT = 402, | ||
DPORT_FORMAT_ERROR = 403, | ||
ADDRESS_FORMAT_ERROR = 405 | ||
SUCCESS = 0, | ||
FAILED = 1, | ||
OFFLINE = 2, | ||
DPORT_CONFLICT = 3, | ||
DPORT_UNBOUND = 4, | ||
TIMEOUT = 5 | ||
} | ||
@@ -17,0 +17,0 @@ export declare const enum DATA_TYPE { |
@@ -7,5 +7,7 @@ /// <reference lib="dom" /> | ||
} | ||
interface Bnrtc2Clinet { | ||
close(code?: number, reason?: string): Promise<boolean>; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): void; | ||
interface Bnrtc2Client { | ||
onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
onError: import('@bfcs/util-evt').Attacher<Error>; | ||
close(code?: number, reason?: string): void; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): Promise<void>; | ||
onData(dport: string, handler: Bnrtc2DataHandler): void; | ||
@@ -44,3 +46,3 @@ offData(dport: string, handler?: Bnrtc2DataHandler): void; | ||
} | ||
var bnrtcGlobal: Global; | ||
var bnrtc2Global: Global; | ||
} |
@@ -9,8 +9,8 @@ export declare const enum READY_STATE { | ||
export declare const enum RESULT_CODE { | ||
SUCCESS = 200, | ||
FAILED = 400, | ||
OFFLINE = 401, | ||
DPORT_CONFLICT = 402, | ||
DPORT_FORMAT_ERROR = 403, | ||
ADDRESS_FORMAT_ERROR = 405 | ||
SUCCESS = 0, | ||
FAILED = 1, | ||
OFFLINE = 2, | ||
DPORT_CONFLICT = 3, | ||
DPORT_UNBOUND = 4, | ||
TIMEOUT = 5 | ||
} | ||
@@ -17,0 +17,0 @@ export declare const enum DATA_TYPE { |
@@ -7,5 +7,7 @@ /// <reference lib="dom" /> | ||
} | ||
interface Bnrtc2Clinet { | ||
close(code?: number, reason?: string): Promise<boolean>; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): void; | ||
interface Bnrtc2Client { | ||
onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
onError: import('@bfcs/util-evt').Attacher<Error>; | ||
close(code?: number, reason?: string): void; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): Promise<void>; | ||
onData(dport: string, handler: Bnrtc2DataHandler): void; | ||
@@ -44,4 +46,4 @@ offData(dport: string, handler?: Bnrtc2DataHandler): void; | ||
} | ||
var bnrtcGlobal: Global; | ||
var bnrtc2Global: Global; | ||
} | ||
//# sourceMappingURL=@types.d.ts.map |
@@ -9,8 +9,8 @@ export declare const enum READY_STATE { | ||
export declare const enum RESULT_CODE { | ||
SUCCESS = 200, | ||
FAILED = 400, | ||
OFFLINE = 401, | ||
DPORT_CONFLICT = 402, | ||
DPORT_FORMAT_ERROR = 403, | ||
ADDRESS_FORMAT_ERROR = 405 | ||
SUCCESS = 0, | ||
FAILED = 1, | ||
OFFLINE = 2, | ||
DPORT_CONFLICT = 3, | ||
DPORT_UNBOUND = 4, | ||
TIMEOUT = 5 | ||
} | ||
@@ -17,0 +17,0 @@ export declare const enum DATA_TYPE { |
{ | ||
"name": "@bfchain/bnrtc2-client-typings", | ||
"version": "0.0.1-alpha.2", | ||
"version": "0.0.1-alpha.3", | ||
"main": "cjs/index.js", | ||
@@ -9,4 +9,4 @@ "type": "cjs/index.d.ts", | ||
"dependencies": { | ||
"@bfchain/bnrtc2-buffer": "^0.0.1-alpha.2" | ||
"@bfchain/bnrtc2-buffer": "^0.0.1-alpha.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12004
240