@eleven-am/pondsocket 0.1.99 → 0.1.101

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/package.json +1 -1
  2. package/types.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.99",
3
+ "version": "0.1.101",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
package/types.d.ts CHANGED
@@ -167,7 +167,7 @@ declare class Context<Path extends string = string> {
167
167
  /**
168
168
  * @desc The assigns, available in onJoin, onEvent handlers
169
169
  */
170
- event: PondEvent<string> | null;
170
+ event: PondEvent<Path> | null;
171
171
 
172
172
  /**
173
173
  * @desc Retrieves metadata associated with the class
@@ -855,7 +855,7 @@ declare function GetLeaveEvent(): ParameterDecorator;
855
855
  * @param callback - The callback to call when the decorator is used
856
856
  * @returns {ReturnType<callback>}
857
857
  */
858
- declare function createParamDecorator<Input> (callback: ParamDecoratorCallback<Input>): ParameterDecorator;
858
+ declare function createParamDecorator<Input> (callback: ParamDecoratorCallback<Input>): (input: Input) => ParameterDecorator;
859
859
 
860
860
  /**
861
861
  * @desc Marks a method as a handler for JoinRequest events. Throwing an error will reject the request with the error message.