@eleven-am/pondsocket 0.1.122 → 0.1.124
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/package.json +1 -1
- package/types.d.ts +2 -2
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ type NestFuncType<Event extends string, Payload extends PondMessage> = {
|
|
|
102
102
|
} & Payload;
|
|
103
103
|
|
|
104
104
|
type NestReturnType<EventType extends PondEvenType, Event extends keyof EventType> = Event extends string ?
|
|
105
|
-
NestFuncType<Event, EventType[Event]>
|
|
105
|
+
NestFuncType<Event, EventType[Event]> :
|
|
106
106
|
never;
|
|
107
107
|
|
|
108
108
|
interface UserData {
|
|
@@ -737,7 +737,7 @@ declare class PondClient {
|
|
|
737
737
|
* @param name - The name of the channel.
|
|
738
738
|
* @param params - The params to send to the server.
|
|
739
739
|
*/
|
|
740
|
-
createChannel (name: string, params?: JoinParams): ClientChannel
|
|
740
|
+
createChannel <EventType extends PondEvenType = PondEvenType> (name: string, params?: JoinParams): ClientChannel<EventType>;
|
|
741
741
|
|
|
742
742
|
/**
|
|
743
743
|
* @desc Subscribes to the connection state.
|