@tuyau/core 1.0.0-next.18 → 1.0.0

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.
@@ -36,9 +36,9 @@ interface AdonisEndpoint extends SchemaEndpoint {
36
36
  * Used in generated registry to separate query params from body for POST/PUT/PATCH/DELETE.
37
37
  * For GET/HEAD, use ExtractQueryForGet instead.
38
38
  */
39
- type ExtractQuery<T> = T extends {
39
+ type ExtractQuery<T> = 'query' extends keyof T ? T extends {
40
40
  query?: infer Q;
41
- } ? Q : {};
41
+ } ? Q : {} : {};
42
42
  /**
43
43
  * Extract query params for GET/HEAD requests.
44
44
  * Excludes headers, cookies, and params from the validator type since these are not query params.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tuyau/core",
3
3
  "type": "module",
4
- "version": "1.0.0-next.18",
4
+ "version": "1.0.0",
5
5
  "description": "E2E typesafe client for AdonisJS",
6
6
  "author": "Julien Ripouteau <julien@ripouteau.com>",
7
7
  "license": "MIT",