@byyuurin/nitro-openapi 0.0.3 → 0.0.5

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/dist/index.d.cts CHANGED
@@ -26,9 +26,9 @@ type ReferenceExtended<T extends string> = Omit<ReferenceObject, '$ref'> & {
26
26
  $ref: T;
27
27
  };
28
28
  type MaybeReference<T, R extends string = string> = T | ReferenceExtended<R>;
29
- type MaybeValueOrObject<ExampleT, ContentT> = ExampleT extends number | string | boolean ? ContentT : ExampleT extends (infer ArrayT)[] ? ContentT | MaybeValueOrObject<ArrayT, ContentT> : ExampleT extends Record<infer PropertyT, unknown> ? {
30
- [key in PropertyT]?: ContentT;
31
- } | ContentT : ContentT;
29
+ type MaybeValueOrObject<ExampleT, ContentT> = ExampleT extends number | string | boolean ? ContentT : ExampleT extends (infer ArrayT)[] ? ContentT | MaybeValueOrObject<ArrayT, ContentT> : ExampleT extends object ? {
30
+ [key in keyof ExampleT]?: ContentT;
31
+ } | ContentT : unknown;
32
32
  type PathOperations = Omit<PathItemObject, 'servers' | 'parameters' | `x-${string}`>;
33
33
  type PathOperationMethod = keyof PathOperations;
34
34
  type PathResponse<RefT extends string> = Omit<ResponseObject, 'content'> & {
package/dist/index.d.mts CHANGED
@@ -26,9 +26,9 @@ type ReferenceExtended<T extends string> = Omit<ReferenceObject, '$ref'> & {
26
26
  $ref: T;
27
27
  };
28
28
  type MaybeReference<T, R extends string = string> = T | ReferenceExtended<R>;
29
- type MaybeValueOrObject<ExampleT, ContentT> = ExampleT extends number | string | boolean ? ContentT : ExampleT extends (infer ArrayT)[] ? ContentT | MaybeValueOrObject<ArrayT, ContentT> : ExampleT extends Record<infer PropertyT, unknown> ? {
30
- [key in PropertyT]?: ContentT;
31
- } | ContentT : ContentT;
29
+ type MaybeValueOrObject<ExampleT, ContentT> = ExampleT extends number | string | boolean ? ContentT : ExampleT extends (infer ArrayT)[] ? ContentT | MaybeValueOrObject<ArrayT, ContentT> : ExampleT extends object ? {
30
+ [key in keyof ExampleT]?: ContentT;
31
+ } | ContentT : unknown;
32
32
  type PathOperations = Omit<PathItemObject, 'servers' | 'parameters' | `x-${string}`>;
33
33
  type PathOperationMethod = keyof PathOperations;
34
34
  type PathResponse<RefT extends string> = Omit<ResponseObject, 'content'> & {
package/dist/index.d.ts CHANGED
@@ -26,9 +26,9 @@ type ReferenceExtended<T extends string> = Omit<ReferenceObject, '$ref'> & {
26
26
  $ref: T;
27
27
  };
28
28
  type MaybeReference<T, R extends string = string> = T | ReferenceExtended<R>;
29
- type MaybeValueOrObject<ExampleT, ContentT> = ExampleT extends number | string | boolean ? ContentT : ExampleT extends (infer ArrayT)[] ? ContentT | MaybeValueOrObject<ArrayT, ContentT> : ExampleT extends Record<infer PropertyT, unknown> ? {
30
- [key in PropertyT]?: ContentT;
31
- } | ContentT : ContentT;
29
+ type MaybeValueOrObject<ExampleT, ContentT> = ExampleT extends number | string | boolean ? ContentT : ExampleT extends (infer ArrayT)[] ? ContentT | MaybeValueOrObject<ArrayT, ContentT> : ExampleT extends object ? {
30
+ [key in keyof ExampleT]?: ContentT;
31
+ } | ContentT : unknown;
32
32
  type PathOperations = Omit<PathItemObject, 'servers' | 'parameters' | `x-${string}`>;
33
33
  type PathOperationMethod = keyof PathOperations;
34
34
  type PathResponse<RefT extends string> = Omit<ResponseObject, 'content'> & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@byyuurin/nitro-openapi",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/byyuurin/nitro-openapi",
@@ -44,7 +44,7 @@
44
44
  "dev:preview": "node playground/.output/server/index.mjs",
45
45
  "lint": "eslint .",
46
46
  "test": "vitest",
47
- "release": "bumpp && pnpm publish",
47
+ "release": "pnpm build && bumpp && pnpm publish",
48
48
  "stub": "unbuild --stub"
49
49
  }
50
50
  }