wenay-common2 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ export declare function funcListenCallbackFast<T>(a: (e: (Listener<NormalizeTupl
25
25
  addListen: (cb: Listener<NormalizeTuple<T>>, cbClose?: (() => void) | undefined) => () => void;
26
26
  removeListen: (cb: Listener<NormalizeTuple<T>> | null) => void;
27
27
  count: () => number;
28
- readonly getAllKeys: Listener<NormalizeTuple<T_1>>[];
28
+ readonly getAllKeys: Listener<NormalizeTuple<T>>[];
29
29
  };
30
30
  export declare function funcListenCallback<T>(a: (e: (Listener<NormalizeTuple<T>> | null)) => (void | (() => void)), event?: (type: "add" | "remove", count: number, api: ReturnType<typeof funcListenCallbackBase<T>>) => void, fast?: boolean): {
31
31
  func: Listener<NormalizeTuple<T>>;
@@ -37,7 +37,7 @@ export declare function funcListenCallback<T>(a: (e: (Listener<NormalizeTuple<T>
37
37
  addListen: (cb: Listener<NormalizeTuple<T>>, cbClose?: (() => void) | undefined) => () => void;
38
38
  removeListen: (cb: Listener<NormalizeTuple<T>> | null) => void;
39
39
  count: () => number;
40
- readonly getAllKeys: Listener<NormalizeTuple<T_1>>[];
40
+ readonly getAllKeys: Listener<NormalizeTuple<T>>[];
41
41
  };
42
42
  export declare function UseListen<T>(data?: Parameters<typeof funcListenCallbackBase<T>>[1]): readonly [(...a: NormalizeTuple<T>) => void, {
43
43
  func: Listener<NormalizeTuple<T>>;
@@ -49,7 +49,7 @@ export declare function UseListen<T>(data?: Parameters<typeof funcListenCallback
49
49
  addListen: (cb: Listener<NormalizeTuple<T>>, cbClose?: (() => void) | undefined) => () => void;
50
50
  removeListen: (cb: Listener<NormalizeTuple<T>> | null) => void;
51
51
  count: () => number;
52
- readonly getAllKeys: Listener<NormalizeTuple<T_1>>[];
52
+ readonly getAllKeys: Listener<NormalizeTuple<T>>[];
53
53
  }];
54
54
  export declare function isListenCallback(obj: any): obj is ReturnType<typeof funcListenCallbackBase>;
55
55
  export {};
@@ -31,7 +31,7 @@ export declare function funcListenCallbackSnapshot<T extends realSocket2<any | a
31
31
  addListen: (cb: import("./Listen").Listener<[data: getTypeCallback<T>, memo: T3]>, cbClose?: (() => void) | undefined) => () => void;
32
32
  removeListen: (cb: import("./Listen").Listener<[data: getTypeCallback<T>, memo: T3]> | null) => void;
33
33
  count: () => number;
34
- readonly getAllKeys: import("./Listen").Listener<T_1 extends any[] ? T_1 : [T_1]>[];
34
+ readonly getAllKeys: import("./Listen").Listener<[data: getTypeCallback<T>, memo: T3]>[];
35
35
  };
36
36
  connect: () => void;
37
37
  readonly disconnect: ((a: Omit<Parameters<T>[0], "callback"> & {
@@ -14,7 +14,7 @@ export declare function SocketServerHook(opt?: {
14
14
  addListen: (cb: import("./Listen").Listener<[unknown]>, cbClose?: (() => void) | undefined) => () => void;
15
15
  removeListen: (cb: import("./Listen").Listener<[unknown]> | null) => void;
16
16
  count: () => number;
17
- readonly getAllKeys: import("./Listen").Listener<T extends any[] ? T : [T]>[];
17
+ readonly getAllKeys: import("./Listen").Listener<[unknown]>[];
18
18
  }];
19
19
  };
20
20
  get(tag: string): readonly [(a_0: unknown) => void, {
@@ -27,7 +27,7 @@ export declare function SocketServerHook(opt?: {
27
27
  addListen: (cb: import("./Listen").Listener<[unknown]>, cbClose?: (() => void) | undefined) => () => void;
28
28
  removeListen: (cb: import("./Listen").Listener<[unknown]> | null) => void;
29
29
  count: () => number;
30
- readonly getAllKeys: import("./Listen").Listener<T extends any[] ? T : [T]>[];
30
+ readonly getAllKeys: import("./Listen").Listener<[unknown]>[];
31
31
  }];
32
32
  provider: (tag: string, data: any) => void;
33
33
  };
package/lib/index.d.ts CHANGED
@@ -22,7 +22,6 @@ export * from "./Common/funcTimeWait";
22
22
  export * from "./Common/id-pool";
23
23
  export * from "./Common/inputAutoStep";
24
24
  export * from "./Common/node_console";
25
- export * from "./Common/WebHook3";
26
25
  export * from "./Common/Time";
27
26
  export * as Math from "./Common/math/Math";
28
27
  export * as Bars from "./Exchange/Bars";
package/lib/index.js CHANGED
@@ -61,7 +61,6 @@ __exportStar(require("./Common/funcTimeWait"), exports);
61
61
  __exportStar(require("./Common/id-pool"), exports);
62
62
  __exportStar(require("./Common/inputAutoStep"), exports);
63
63
  __exportStar(require("./Common/node_console"), exports);
64
- __exportStar(require("./Common/WebHook3"), exports);
65
64
  __exportStar(require("./Common/Time"), exports);
66
65
  exports.Math = __importStar(require("./Common/math/Math"));
67
66
  exports.Bars = __importStar(require("./Exchange/Bars"));
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "wenay-common2",
3
- "version": "1.0.7",
4
- "description": "Common library",
5
- "strict": true,
6
- "main": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "files": [
9
- "lib/**/*",
10
- "!**/*.tsbuildinfo"
11
- ],
12
- "author": "wenay",
13
- "license": "ISC",
14
- "engines": {
15
- "node": ">=16.0.0"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/wenayr/wenay-common2.git"
20
- },
21
- "optionalDependencies": {
22
- "utf-8-validate": "^6.0.6"
23
- },
24
- "exports": {
25
- ".": "./lib/index.js",
26
- "./lib/client": "./lib/client.js",
27
- "./lib/server": "./lib/server.js",
28
- "./client": "./lib/client.js",
29
- "./server": "./lib/server.js",
30
- "./package.json": "./package.json"
31
- }
32
- }
1
+ {
2
+ "name": "wenay-common2",
3
+ "version": "1.0.9",
4
+ "description": "Common library",
5
+ "strict": true,
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "lib/**/*",
10
+ "!**/*.tsbuildinfo"
11
+ ],
12
+ "author": "wenay",
13
+ "license": "ISC",
14
+ "engines": {
15
+ "node": ">=16.0.0"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/wenayr/wenay-common2.git"
20
+ },
21
+ "optionalDependencies": {
22
+ "utf-8-validate": "^6.0.6"
23
+ },
24
+ "exports": {
25
+ ".": "./lib/index.js",
26
+ "./lib/client": "./lib/client.js",
27
+ "./lib/server": "./lib/server.js",
28
+ "./client": "./lib/client.js",
29
+ "./server": "./lib/server.js",
30
+ "./package.json": "./package.json"
31
+ }
32
+ }