@tsed/socketio 8.26.0 → 8.26.1

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.
@@ -3,7 +3,6 @@ import { Store } from "@tsed/core";
3
3
  *
4
4
  * @param {SocketFilters} filter
5
5
  * @param {number} mapIndex
6
- * @returns {(target: any, propertyKey: string, index: number) => Store}
7
6
  * @decorator
8
7
  */
9
8
  export function SocketFilter(filter, mapIndex) {
@@ -20,4 +20,4 @@
20
20
  * @decorator
21
21
  * @param eventName
22
22
  */
23
- export declare function Broadcast(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
23
+ export declare function Broadcast(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -20,4 +20,4 @@
20
20
  * @decorator
21
21
  * @param eventName
22
22
  */
23
- export declare function BroadcastOthers(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
23
+ export declare function BroadcastOthers(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -20,4 +20,4 @@
20
20
  * @decorator
21
21
  * @param eventName
22
22
  */
23
- export declare function Emit(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
23
+ export declare function Emit(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -17,4 +17,4 @@
17
17
  * @decorator
18
18
  * @param eventName
19
19
  */
20
- export declare function Input(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
20
+ export declare function Input(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -17,4 +17,4 @@
17
17
  * @decorator
18
18
  * @param eventName
19
19
  */
20
- export declare function InputAndBroadcast(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
20
+ export declare function InputAndBroadcast(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -17,4 +17,4 @@
17
17
  * @decorator
18
18
  * @param eventName
19
19
  */
20
- export declare function InputAndBroadcastOthers(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
20
+ export declare function InputAndBroadcastOthers(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -17,4 +17,4 @@
17
17
  * @decorator
18
18
  * @param eventName
19
19
  */
20
- export declare function InputAndEmit(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
20
+ export declare function InputAndEmit(eventName: string): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -69,4 +69,4 @@ export declare function Nsp(target: any, propertyKey?: string, index?: number):
69
69
  * @alias {Nsp}
70
70
  * @decorator
71
71
  */
72
- export declare function Namespace(target: any, propertyKey?: string, index?: number): any;
72
+ export declare function Namespace(target: Object, propertyKey?: string, index?: number): void | ((target: Object, propertyKey: string) => void);
@@ -22,4 +22,4 @@
22
22
  * @param {number} index
23
23
  * @decorator
24
24
  */
25
- export declare function Reason(target: unknown, propertyKey: string, index: number): void;
25
+ export declare function Reason(target: Object, propertyKey: string, index: number): void;
@@ -22,4 +22,4 @@ export type Socket = SocketType;
22
22
  * @param {number} index
23
23
  * @decorator
24
24
  */
25
- export declare function Socket(target: any, propertyKey: string, index: number): any;
25
+ export declare function Socket(target: Object, propertyKey: string, index: number): any;
@@ -18,4 +18,4 @@
18
18
  * @param propertyKey
19
19
  * @param index
20
20
  */
21
- export declare function SocketErr(target: any, propertyKey: string, index: number): any;
21
+ export declare function SocketErr(target: Object, propertyKey: string, index: number): any;
@@ -18,4 +18,4 @@
18
18
  * @param {number} index
19
19
  * @decorator
20
20
  */
21
- export declare function SocketEventName(target: any, propertyKey: string, index: number): any;
21
+ export declare function SocketEventName(target: Object, propertyKey: string, index: number): any;
@@ -3,7 +3,6 @@ import { SocketFilters } from "../interfaces/SocketFilters.js";
3
3
  *
4
4
  * @param {SocketFilters} filter
5
5
  * @param {number} mapIndex
6
- * @returns {(target: any, propertyKey: string, index: number) => Store}
7
6
  * @decorator
8
7
  */
9
- export declare function SocketFilter(filter: SocketFilters, mapIndex?: number): (target: any, propertyKey: string, index: number) => void;
8
+ export declare function SocketFilter(filter: SocketFilters, mapIndex?: number): (target: Object, propertyKey: string, index: number) => void;
@@ -23,4 +23,4 @@ export type SocketNsp = Namespace;
23
23
  * @param {number} index
24
24
  * @decorator
25
25
  */
26
- export declare function SocketNsp(target: any, propertyKey: string, index: number): any;
26
+ export declare function SocketNsp(target: Object, propertyKey: string, index: number): any;
@@ -6,4 +6,4 @@ import { SocketReturnsTypes } from "../interfaces/SocketReturnsTypes.js";
6
6
  * @returns {(target: any, propertyKey: string, descriptor: PropertyDescriptor) => void}
7
7
  * @decorator
8
8
  */
9
- export declare function SocketReturns(eventName: string, type: SocketReturnsTypes): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
9
+ export declare function SocketReturns(eventName: string, type: SocketReturnsTypes): (target: Object, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -20,7 +20,7 @@ export type SocketSession = Map<string, any>;
20
20
  * @param {number} index
21
21
  * @decorator
22
22
  */
23
- export declare function SocketSession(target: any, propertyKey: string, index: number): void;
23
+ export declare function SocketSession(target: Object, propertyKey: string, index: number): void;
24
24
  /**
25
25
  * Inject the raw `socket.data` in the decorated parameter.
26
26
  *
@@ -41,4 +41,4 @@ export declare function SocketSession(target: any, propertyKey: string, index: n
41
41
  * @param {number} index
42
42
  * @constructor
43
43
  */
44
- export declare function RawSocketSession(target: any, propertyKey: string, index: number): void;
44
+ export declare function RawSocketSession(target: Object, propertyKey: string, index: number): void;
@@ -49,4 +49,4 @@ import { Type } from "@tsed/core";
49
49
  * @experimental
50
50
  * @param middlewares
51
51
  */
52
- export declare function SocketUseAfter(...middlewares: Type<any>[]): (target: any, propertyKey?: string, descriptor?: PropertyDescriptor) => void;
52
+ export declare function SocketUseAfter(...middlewares: Type<any>[]): (target: Object, propertyKey?: string, descriptor?: PropertyDescriptor) => void;
@@ -53,4 +53,4 @@ import { Type } from "@tsed/core";
53
53
  * @experimental
54
54
  * @param middlewares
55
55
  */
56
- export declare function SocketUseBefore(...middlewares: Type<any>[]): (target: any, propertyKey?: string, descriptor?: PropertyDescriptor) => void;
56
+ export declare function SocketUseBefore(...middlewares: Type<any>[]): (target: Object, propertyKey?: string, descriptor?: PropertyDescriptor) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/socketio",
3
3
  "description": "Socket.io package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.26.0",
5
+ "version": "8.26.1",
6
6
  "keywords": [
7
7
  "tsed",
8
8
  "socket.io",
@@ -34,21 +34,21 @@
34
34
  "tslib": ">=2.7.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tsed/barrels": "8.26.0",
38
- "@tsed/core": "8.26.0",
39
- "@tsed/di": "8.26.0",
40
- "@tsed/json-mapper": "8.26.0",
41
- "@tsed/openspec": "8.26.0",
42
- "@tsed/platform-http": "8.26.0",
43
- "@tsed/platform-middlewares": "8.26.0",
44
- "@tsed/schema": "8.26.0",
45
- "@tsed/socketio-testing": "8.26.0",
46
- "@tsed/typescript": "8.26.0",
37
+ "@tsed/barrels": "8.26.1",
38
+ "@tsed/core": "8.26.1",
39
+ "@tsed/di": "8.26.1",
40
+ "@tsed/json-mapper": "8.26.1",
41
+ "@tsed/openspec": "8.26.1",
42
+ "@tsed/platform-http": "8.26.1",
43
+ "@tsed/platform-middlewares": "8.26.1",
44
+ "@tsed/schema": "8.26.1",
45
+ "@tsed/socketio-testing": "8.26.1",
46
+ "@tsed/typescript": "8.26.1",
47
47
  "eslint": "9.12.0",
48
48
  "express": "5.2.1",
49
49
  "socket.io": "4.8.0",
50
50
  "socket.io-client": "^4.8.0",
51
- "typescript": "5.9.3",
51
+ "typescript": "6.0.2",
52
52
  "vitest": "3.2.4"
53
53
  },
54
54
  "peerDependencies": {