@eleven-am/pondsocket-nest 0.0.10 → 0.0.11
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.
- package/index.d.ts +4 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
Channel as PondChannel,
|
|
7
7
|
LeaveEvent,
|
|
8
8
|
JoinResponse, EventResponse,
|
|
9
|
-
ConnectionResponse,
|
|
9
|
+
ConnectionResponse,
|
|
10
10
|
PondEvenType, PondEvent, PondMessage, PondPresence, PondAssigns,
|
|
11
11
|
} from '@eleven-am/pondsocket/types';
|
|
12
12
|
import type { DynamicModule, ModuleMetadata } from '@nestjs/common';
|
|
@@ -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 ():
|
|
87
|
+
get presence<Presence extends PondPresence = PondPresence> (): Record<string, Presence> | null;
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* @desc The user object, assigned to the current user
|
|
91
91
|
*/
|
|
92
|
-
get user (): UserData | null;
|
|
92
|
+
get user<Presence extends PondPresence = PondPresence, Assigns extends PondAssigns = PondAssigns> (): 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
|
|
97
|
+
get channel<EventType extends PondEvenType = PondEvenType, Presence extends PondPresence = PondPresence, Assigns extends PondAssigns = PondAssigns> (): PondChannel<EventType, Presence, Assigns> | null;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* @desc The event object of the current the request
|