@eleven-am/pondsocket-nest 0.0.11 → 0.0.12

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.
Files changed (2) hide show
  1. package/index.d.ts +8 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -45,16 +45,16 @@ type NestReturnType<EventType extends PondEvenType, Event extends keyof EventTyp
45
45
  never :
46
46
  never;
47
47
 
48
- declare class Context<Path extends string = string, Event extends PondEvenType = PondEvenType> {
48
+ declare class Context<Path extends string = string, Event extends PondEvenType = PondEvenType, Presence extends PondPresence = PondPresence, Assigns extends PondAssigns = PondAssigns> {
49
49
  /**
50
50
  * @desc The request object, available in onJoin handlers
51
51
  */
52
- get joinRequest (): JoinRequest<Path> | null;
52
+ get joinRequest (): JoinRequest<Path, Presence, Assigns> | null;
53
53
 
54
54
  /**
55
55
  * @desc The request object, available in onEvent handlers
56
56
  */
57
- get eventRequest (): EventRequest<Path> | null;
57
+ get eventRequest (): EventRequest<Path, Presence, Assigns> | null;
58
58
 
59
59
  /**
60
60
  * @desc The request object, available in onConnection handlers
@@ -69,12 +69,12 @@ declare class Context<Path extends string = string, Event extends PondEvenType =
69
69
  /**
70
70
  * @desc The response object, available in onJoin handlers
71
71
  */
72
- get joinResponse (): JoinResponse<Event> | null;
72
+ get joinResponse (): JoinResponse<Event, Presence, Assigns> | null;
73
73
 
74
74
  /**
75
75
  * @desc The response object, available in onEvent handlers
76
76
  */
77
- get eventResponse (): EventResponse<Event> | null;
77
+ get eventResponse (): EventResponse<Event, Presence, Assigns> | null;
78
78
 
79
79
  /**
80
80
  * @desc The response object, available in onConnection handlers
@@ -84,17 +84,17 @@ declare class Context<Path extends string = string, Event extends PondEvenType =
84
84
  /**
85
85
  * @desc The presence object, available on the channel
86
86
  */
87
- get presence<Presence extends PondPresence = PondPresence> (): Record<string, Presence> | null;
87
+ get presence (): Record<string, Presence> | null;
88
88
 
89
89
  /**
90
90
  * @desc The user object, assigned to the current user
91
91
  */
92
- get user<Presence extends PondPresence = PondPresence, Assigns extends PondAssigns = PondAssigns> (): UserData<Presence, Assigns> | null;
92
+ get user (): UserData<Presence, Assigns> | null;
93
93
 
94
94
  /**
95
95
  * @desc The channel object handling the request
96
96
  */
97
- get channel<EventType extends PondEvenType = PondEvenType, Presence extends PondPresence = PondPresence, Assigns extends PondAssigns = PondAssigns> (): PondChannel<EventType, Presence, Assigns> | null;
97
+ get channel (): PondChannel<Event, Presence, Assigns> | null;
98
98
 
99
99
  /**
100
100
  * @desc The event object of the current the request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket-nest",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",