two-stroke 7.10.0 → 7.10.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.
package/package.json CHANGED
@@ -56,7 +56,7 @@
56
56
  "url": "https://github.com/change-engine/two-stroke"
57
57
  },
58
58
  "type": "module",
59
- "version": "7.10.0",
59
+ "version": "7.10.1",
60
60
  "devDependencies": {
61
61
  "@types/eslint": "^9.6.1",
62
62
  "eslint": "^10.6.0",
package/src/index.ts CHANGED
@@ -361,12 +361,20 @@ export function twoStroke<T>(
361
361
  console.log("Queue batch finished");
362
362
  };
363
363
  },
364
- put<I extends ZodType, O extends ZodType, A, P extends string>(
364
+ put<
365
+ I extends ZodType | undefined,
366
+ O extends ZodType,
367
+ A,
368
+ P extends string,
369
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
370
+ PP extends ZodObject<any> | undefined,
371
+ >(
365
372
  auth: Route<T, A>["auth"],
366
373
  path: P,
367
374
  input: I,
368
375
  output: O,
369
376
  handler: Handler<T, I, O, A, P>,
377
+ params?: PP,
370
378
  ) {
371
379
  routes.push({
372
380
  auth,
@@ -376,6 +384,7 @@ export function twoStroke<T>(
376
384
  input,
377
385
  output,
378
386
  handler,
387
+ params,
379
388
  });
380
389
  },
381
390