@bfchain/bnrtc2-client-typings
Advanced tools
Comparing version 0.0.0 to 0.0.1-alpha.1
@@ -9,6 +9,5 @@ /// <reference lib="dom" /> | ||
close(code?: number, reason?: string): Promise<boolean>; | ||
send(address: string, dport: string, data: import("@bfchain/bnrtc2-buffer").Bnrtc2Buffer): void; | ||
onData(dport: string, handler: Bnrtc2DataHandler): boolean; | ||
offData(dport: string, handler: Bnrtc2DataHandler): boolean; | ||
out(): void; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): void; | ||
onData(dport: string, handler: Bnrtc2DataHandler): void; | ||
offData(dport: string, handler?: Bnrtc2DataHandler): void; | ||
} | ||
@@ -20,3 +19,3 @@ interface ResultData { | ||
} | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => boolean; | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; | ||
interface Bnrtc2Data { | ||
@@ -23,0 +22,0 @@ address: string; |
@@ -1,4 +0,4 @@ | ||
import '@bfcs/util-evt-typings'; | ||
import './@types'; | ||
export * from './const'; | ||
import "@bfchain/bnrtc2-buffer-typings"; | ||
import "./@types"; | ||
export * from "./const"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,4 +13,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("@bfcs/util-evt-typings"); | ||
require("@bfchain/bnrtc2-buffer-typings"); | ||
require("./@types"); | ||
__exportStar(require("./const"), exports); |
@@ -9,6 +9,5 @@ /// <reference lib="dom" /> | ||
close(code?: number, reason?: string): Promise<boolean>; | ||
send(address: string, dport: string, data: import("@bfchain/bnrtc2-buffer").Bnrtc2Buffer): void; | ||
onData(dport: string, handler: Bnrtc2DataHandler): boolean; | ||
offData(dport: string, handler: Bnrtc2DataHandler): boolean; | ||
out(): void; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): void; | ||
onData(dport: string, handler: Bnrtc2DataHandler): void; | ||
offData(dport: string, handler?: Bnrtc2DataHandler): void; | ||
} | ||
@@ -20,3 +19,3 @@ interface ResultData { | ||
} | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => boolean; | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; | ||
interface Bnrtc2Data { | ||
@@ -23,0 +22,0 @@ address: string; |
@@ -1,3 +0,3 @@ | ||
import '@bfcs/util-evt-typings'; | ||
import './@types'; | ||
export * from './const'; | ||
import "@bfchain/bnrtc2-buffer-typings"; | ||
import "./@types"; | ||
export * from "./const"; |
@@ -1,3 +0,3 @@ | ||
import '@bfcs/util-evt-typings'; | ||
import './@types'; | ||
export * from './const'; | ||
import "@bfchain/bnrtc2-buffer-typings"; | ||
import "./@types"; | ||
export * from "./const"; |
@@ -9,6 +9,5 @@ /// <reference lib="dom" /> | ||
close(code?: number, reason?: string): Promise<boolean>; | ||
send(address: string, dport: string, data: import("@bfchain/bnrtc2-buffer").Bnrtc2Buffer): void; | ||
onData(dport: string, handler: Bnrtc2DataHandler): boolean; | ||
offData(dport: string, handler: Bnrtc2DataHandler): boolean; | ||
out(): void; | ||
send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array): void; | ||
onData(dport: string, handler: Bnrtc2DataHandler): void; | ||
offData(dport: string, handler?: Bnrtc2DataHandler): void; | ||
} | ||
@@ -20,3 +19,3 @@ interface ResultData { | ||
} | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => boolean; | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; | ||
interface Bnrtc2Data { | ||
@@ -23,0 +22,0 @@ address: string; |
@@ -1,4 +0,4 @@ | ||
import '@bfcs/util-evt-typings'; | ||
import './@types'; | ||
export * from './const'; | ||
import "@bfchain/bnrtc2-buffer-typings"; | ||
import "./@types"; | ||
export * from "./const"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import '@bfcs/util-evt-typings'; | ||
import './@types'; | ||
export * from './const'; | ||
import "@bfchain/bnrtc2-buffer-typings"; | ||
import "./@types"; | ||
export * from "./const"; |
{ | ||
"name": "@bfchain/bnrtc2-client-typings", | ||
"version": "0.0.0", | ||
"version": "0.0.1-alpha.1", | ||
"main": "cjs/index.js", | ||
@@ -9,5 +9,4 @@ "type": "cjs/index.d.ts", | ||
"dependencies": { | ||
"@bfchain/bnrtc2-buffer": "0.0.0", | ||
"@bfcs/util-evt-typings": "0.0.1-alpha.1" | ||
"@bfchain/bnrtc2-buffer": "^0.0.1-alpha.1" | ||
} | ||
} |
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
1
11626
234
+ Added@bfchain/bnrtc2-buffer@0.0.1-alpha.21(transitive)
+ Added@bfchain/bnrtc2-buffer-typings@0.0.1-alpha.21(transitive)
- Removed@bfcs/util-evt-typings@0.0.1-alpha.1
- Removed@bfchain/bnrtc2-buffer@0.0.0(transitive)
- Removed@bfchain/bnrtc2-buffer-typings@0.0.0(transitive)
- Removed@bfcs/util-evt-core-typings@0.0.1-alpha.2(transitive)
- Removed@bfcs/util-evt-stateful-typings@0.0.1-alpha.2(transitive)
- Removed@bfcs/util-evt-typings@0.0.1-alpha.1(transitive)