two-stroke 1.1.5 → 1.1.6

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/src/index.ts +9 -1
package/package.json CHANGED
@@ -51,7 +51,7 @@
51
51
  "name": "two-stroke",
52
52
  "packageManager": "yarn@4.3.0",
53
53
  "type": "module",
54
- "version": "1.1.5",
54
+ "version": "1.1.6",
55
55
  "devDependencies": {
56
56
  "@types/eslint": "^9.6.1",
57
57
  "@types/node": "^22.7.5",
package/src/index.ts CHANGED
@@ -381,11 +381,18 @@ export function twoStroke<T extends Env>(title: string, release: string) {
381
381
  params,
382
382
  });
383
383
  },
384
- delete<O extends ZodSchema, A, P extends string>(
384
+ delete<
385
+ O extends ZodSchema,
386
+ A,
387
+ P extends string,
388
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
389
+ PP extends ZodObject<any> | undefined,
390
+ >(
385
391
  auth: Route<T, A>["auth"],
386
392
  path: P,
387
393
  output: O,
388
394
  handler: Handler<T, undefined, O, A, P>,
395
+ params?: PP,
389
396
  ) {
390
397
  routes.push({
391
398
  auth,
@@ -396,6 +403,7 @@ export function twoStroke<T extends Env>(title: string, release: string) {
396
403
  ),
397
404
  output,
398
405
  handler,
406
+ params,
399
407
  });
400
408
  },
401
409
  };