@orpc/openapi 1.0.0-beta.5 → 1.0.0-beta.7

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.
@@ -1,6 +1,6 @@
1
1
  import { Context, Router } from '@orpc/server';
2
2
  import { FetchHandler, FetchHandlerOptions } from '@orpc/server/fetch';
3
- import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.IfmmOyba.mjs';
3
+ import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.D3j94c9n.mjs';
4
4
  import '@orpc/openapi-client/standard';
5
5
  import '@orpc/server/standard';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Context, Router } from '@orpc/server';
2
2
  import { FetchHandler, FetchHandlerOptions } from '@orpc/server/fetch';
3
- import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.IfmmOyba.js';
3
+ import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.D3j94c9n.js';
4
4
  import '@orpc/openapi-client/standard';
5
5
  import '@orpc/server/standard';
6
6
 
@@ -1,10 +1,17 @@
1
- export { O as OpenAPIHandler } from '../../shared/openapi.CGZ7t-VN.mjs';
2
- import '@orpc/openapi-client/standard';
3
- import '@orpc/server/fetch';
4
- import '@orpc/server/standard';
5
- import '../../shared/openapi.sdeu0I7N.mjs';
1
+ import { FetchHandler } from '@orpc/server/fetch';
6
2
  import '@orpc/contract';
7
3
  import '@orpc/shared';
4
+ import { a as StandardOpenAPIHandler } from '../../shared/openapi.p5tsmBXx.mjs';
8
5
  import '@orpc/client/standard';
9
6
  import '@orpc/server';
10
7
  import 'rou3';
8
+ import '@orpc/openapi-client/standard';
9
+ import '@orpc/server/standard';
10
+
11
+ class OpenAPIHandler extends FetchHandler {
12
+ constructor(router, options = {}) {
13
+ super(new StandardOpenAPIHandler(router, options), options);
14
+ }
15
+ }
16
+
17
+ export { OpenAPIHandler };
@@ -1,6 +1,6 @@
1
1
  import { Context, Router } from '@orpc/server';
2
2
  import { NodeHttpHandler, NodeHttpHandlerOptions } from '@orpc/server/node';
3
- import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.IfmmOyba.mjs';
3
+ import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.D3j94c9n.mjs';
4
4
  import '@orpc/openapi-client/standard';
5
5
  import '@orpc/server/standard';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Context, Router } from '@orpc/server';
2
2
  import { NodeHttpHandler, NodeHttpHandlerOptions } from '@orpc/server/node';
3
- import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.IfmmOyba.js';
3
+ import { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.D3j94c9n.js';
4
4
  import '@orpc/openapi-client/standard';
5
5
  import '@orpc/server/standard';
6
6
 
@@ -1,21 +1,16 @@
1
- import { StandardOpenAPIJsonSerializer, StandardBracketNotationSerializer, StandardOpenAPISerializer } from '@orpc/openapi-client/standard';
2
1
  import { NodeHttpHandler } from '@orpc/server/node';
3
- import { StandardHandler } from '@orpc/server/standard';
4
- import { a as StandardOpenAPIMatcher, S as StandardOpenAPICodec } from '../../shared/openapi.sdeu0I7N.mjs';
5
2
  import '@orpc/contract';
6
3
  import '@orpc/shared';
4
+ import { a as StandardOpenAPIHandler } from '../../shared/openapi.p5tsmBXx.mjs';
7
5
  import '@orpc/client/standard';
8
6
  import '@orpc/server';
9
7
  import 'rou3';
8
+ import '@orpc/openapi-client/standard';
9
+ import '@orpc/server/standard';
10
10
 
11
11
  class OpenAPIHandler extends NodeHttpHandler {
12
12
  constructor(router, options = {}) {
13
- const jsonSerializer = new StandardOpenAPIJsonSerializer(options);
14
- const bracketNotationSerializer = new StandardBracketNotationSerializer();
15
- const serializer = new StandardOpenAPISerializer(jsonSerializer, bracketNotationSerializer);
16
- const matcher = new StandardOpenAPIMatcher();
17
- const codec = new StandardOpenAPICodec(serializer);
18
- super(new StandardHandler(router, matcher, codec, options), options);
13
+ super(new StandardOpenAPIHandler(router, options), options);
19
14
  }
20
15
  }
21
16
 
@@ -3,7 +3,7 @@ import { StandardOpenAPISerializer } from '@orpc/openapi-client/standard';
3
3
  import { AnyProcedure, AnyRouter } from '@orpc/server';
4
4
  import { StandardCodec, StandardParams, StandardMatcher, StandardMatchResult } from '@orpc/server/standard';
5
5
  import { StandardLazyRequest, StandardResponse } from '@orpc/standard-server';
6
- export { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.IfmmOyba.mjs';
6
+ export { a as StandardOpenAPIHandler, S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.D3j94c9n.mjs';
7
7
 
8
8
  declare class StandardOpenAPICodec implements StandardCodec {
9
9
  private readonly serializer;
@@ -3,7 +3,7 @@ import { StandardOpenAPISerializer } from '@orpc/openapi-client/standard';
3
3
  import { AnyProcedure, AnyRouter } from '@orpc/server';
4
4
  import { StandardCodec, StandardParams, StandardMatcher, StandardMatchResult } from '@orpc/server/standard';
5
5
  import { StandardLazyRequest, StandardResponse } from '@orpc/standard-server';
6
- export { S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.IfmmOyba.js';
6
+ export { a as StandardOpenAPIHandler, S as StandardOpenAPIHandlerOptions } from '../../shared/openapi.D3j94c9n.js';
7
7
 
8
8
  declare class StandardOpenAPICodec implements StandardCodec {
9
9
  private readonly serializer;
@@ -1,7 +1,8 @@
1
- export { S as StandardOpenAPICodec, a as StandardOpenAPIMatcher, d as decodeParams, t as toRou3Pattern } from '../../shared/openapi.sdeu0I7N.mjs';
1
+ export { S as StandardOpenAPICodec, a as StandardOpenAPIHandler, b as StandardOpenAPIMatcher, d as decodeParams, t as toRou3Pattern } from '../../shared/openapi.p5tsmBXx.mjs';
2
+ import '@orpc/openapi-client/standard';
3
+ import '@orpc/server/standard';
2
4
  import '@orpc/contract';
3
5
  import '@orpc/shared';
4
6
  import '@orpc/client/standard';
5
7
  import '@orpc/server';
6
8
  import 'rou3';
7
- import '@orpc/openapi-client/standard';
package/dist/index.d.mts CHANGED
@@ -105,9 +105,11 @@ declare function separateObjectSchema(schema: ObjectSchema, separatedProperties:
105
105
  * @internal
106
106
  */
107
107
  declare function filterSchemaBranches(schema: JSONSchema, check: (schema: JSONSchema) => boolean, matches?: JSONSchema[]): [matches: JSONSchema[], rest: JSONSchema | undefined];
108
+ declare function applySchemaOptionality(required: boolean, schema: JSONSchema): JSONSchema;
108
109
 
109
110
  declare const oo: {
110
111
  spec: typeof customOpenAPIOperation;
111
112
  };
112
113
 
113
- export { CompositeSchemaConverter, type ConditionalSchemaConverter, type FileSchema, LOGIC_KEYWORDS, type ObjectSchema, OpenAPIGenerator, type OpenAPIGeneratorOptions, type OverrideOperationValue, type SchemaConvertOptions, type SchemaConverter, applyCustomOpenAPIOperation, checkParamsSchema, customOpenAPIOperation, filterSchemaBranches, getCustomOpenAPIOperation, isAnySchema, isFileSchema, isObjectSchema, oo, separateObjectSchema, toOpenAPIContent, toOpenAPIEventIteratorContent, toOpenAPIMethod, toOpenAPIParameters, toOpenAPIPath, toOpenAPISchema };
114
+ export { CompositeSchemaConverter, LOGIC_KEYWORDS, OpenAPIGenerator, applyCustomOpenAPIOperation, applySchemaOptionality, checkParamsSchema, customOpenAPIOperation, filterSchemaBranches, getCustomOpenAPIOperation, isAnySchema, isFileSchema, isObjectSchema, oo, separateObjectSchema, toOpenAPIContent, toOpenAPIEventIteratorContent, toOpenAPIMethod, toOpenAPIParameters, toOpenAPIPath, toOpenAPISchema };
115
+ export type { ConditionalSchemaConverter, FileSchema, ObjectSchema, OpenAPIGeneratorOptions, OverrideOperationValue, SchemaConvertOptions, SchemaConverter };
package/dist/index.d.ts CHANGED
@@ -105,9 +105,11 @@ declare function separateObjectSchema(schema: ObjectSchema, separatedProperties:
105
105
  * @internal
106
106
  */
107
107
  declare function filterSchemaBranches(schema: JSONSchema, check: (schema: JSONSchema) => boolean, matches?: JSONSchema[]): [matches: JSONSchema[], rest: JSONSchema | undefined];
108
+ declare function applySchemaOptionality(required: boolean, schema: JSONSchema): JSONSchema;
108
109
 
109
110
  declare const oo: {
110
111
  spec: typeof customOpenAPIOperation;
111
112
  };
112
113
 
113
- export { CompositeSchemaConverter, type ConditionalSchemaConverter, type FileSchema, LOGIC_KEYWORDS, type ObjectSchema, OpenAPIGenerator, type OpenAPIGeneratorOptions, type OverrideOperationValue, type SchemaConvertOptions, type SchemaConverter, applyCustomOpenAPIOperation, checkParamsSchema, customOpenAPIOperation, filterSchemaBranches, getCustomOpenAPIOperation, isAnySchema, isFileSchema, isObjectSchema, oo, separateObjectSchema, toOpenAPIContent, toOpenAPIEventIteratorContent, toOpenAPIMethod, toOpenAPIParameters, toOpenAPIPath, toOpenAPISchema };
114
+ export { CompositeSchemaConverter, LOGIC_KEYWORDS, OpenAPIGenerator, applyCustomOpenAPIOperation, applySchemaOptionality, checkParamsSchema, customOpenAPIOperation, filterSchemaBranches, getCustomOpenAPIOperation, isAnySchema, isFileSchema, isObjectSchema, oo, separateObjectSchema, toOpenAPIContent, toOpenAPIEventIteratorContent, toOpenAPIMethod, toOpenAPIParameters, toOpenAPIPath, toOpenAPISchema };
115
+ export type { ConditionalSchemaConverter, FileSchema, ObjectSchema, OpenAPIGeneratorOptions, OverrideOperationValue, SchemaConvertOptions, SchemaConverter };
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { fallbackORPCErrorStatus, fallbackORPCErrorMessage } from '@orpc/client'
3
3
  import { toHttpPath } from '@orpc/client/standard';
4
4
  import { fallbackContractConfig, getEventIteratorSchemaDetails } from '@orpc/contract';
5
5
  import { standardizeHTTPPath, StandardOpenAPIJsonSerializer, getDynamicParams } from '@orpc/openapi-client/standard';
6
- import { isObject, findDeepMatches, clone } from '@orpc/shared';
6
+ import { isObject, findDeepMatches, toArray, clone } from '@orpc/shared';
7
7
  export { Format as JSONSchemaFormat } from 'json-schema-typed/draft-2020-12';
8
8
 
9
9
  const OPERATION_EXTENDER_SYMBOL = Symbol("ORPC_OPERATION_EXTENDER");
@@ -173,6 +173,17 @@ function filterSchemaBranches(schema, check, matches = []) {
173
173
  }
174
174
  return [matches, schema];
175
175
  }
176
+ function applySchemaOptionality(required, schema) {
177
+ if (required) {
178
+ return schema;
179
+ }
180
+ return {
181
+ anyOf: [
182
+ schema,
183
+ { not: {} }
184
+ ]
185
+ };
186
+ }
176
187
 
177
188
  function toOpenAPIPath(path) {
178
189
  return standardizeHTTPPath(path).replace(/\/\{\+([^}]+)\}/g, "/{$1}");
@@ -293,7 +304,7 @@ class OpenAPIGenerator {
293
304
  converter;
294
305
  constructor(options = {}) {
295
306
  this.serializer = new StandardOpenAPIJsonSerializer(options);
296
- this.converter = new CompositeSchemaConverter(options.schemaConverters ?? []);
307
+ this.converter = new CompositeSchemaConverter(toArray(options.schemaConverters));
297
308
  }
298
309
  async generate(router, base) {
299
310
  const doc = clone(base);
@@ -435,13 +446,13 @@ ${errors.join("\n\n")}`
435
446
  };
436
447
  return;
437
448
  }
438
- const [_, json] = this.converter.convert(outputSchema, { strategy: "output" });
449
+ const [required, json] = this.converter.convert(outputSchema, { strategy: "output" });
439
450
  ref.responses ??= {};
440
451
  ref.responses[status] = {
441
452
  description
442
453
  };
443
454
  if (outputStructure === "compact") {
444
- ref.responses[status].content = toOpenAPIContent(json);
455
+ ref.responses[status].content = toOpenAPIContent(applySchemaOptionality(required, json));
445
456
  return;
446
457
  }
447
458
  const error = new OpenAPIGeneratorError(
@@ -463,7 +474,9 @@ ${errors.join("\n\n")}`
463
474
  }
464
475
  }
465
476
  if (json.properties?.body !== void 0) {
466
- ref.responses[status].content = toOpenAPIContent(json.properties.body);
477
+ ref.responses[status].content = toOpenAPIContent(
478
+ applySchemaOptionality(json.required?.includes("body") ?? false, json.properties.body)
479
+ );
467
480
  }
468
481
  }
469
482
  #errorResponse(ref, def) {
@@ -520,4 +533,4 @@ const oo = {
520
533
  spec: customOpenAPIOperation
521
534
  };
522
535
 
523
- export { CompositeSchemaConverter, LOGIC_KEYWORDS, OpenAPIGenerator, applyCustomOpenAPIOperation, checkParamsSchema, customOpenAPIOperation, filterSchemaBranches, getCustomOpenAPIOperation, isAnySchema, isFileSchema, isObjectSchema, oo, separateObjectSchema, toOpenAPIContent, toOpenAPIEventIteratorContent, toOpenAPIMethod, toOpenAPIParameters, toOpenAPIPath, toOpenAPISchema };
536
+ export { CompositeSchemaConverter, LOGIC_KEYWORDS, OpenAPIGenerator, applyCustomOpenAPIOperation, applySchemaOptionality, checkParamsSchema, customOpenAPIOperation, filterSchemaBranches, getCustomOpenAPIOperation, isAnySchema, isFileSchema, isObjectSchema, oo, separateObjectSchema, toOpenAPIContent, toOpenAPIEventIteratorContent, toOpenAPIMethod, toOpenAPIParameters, toOpenAPIPath, toOpenAPISchema };
@@ -0,0 +1,12 @@
1
+ import { StandardOpenAPIJsonSerializerOptions } from '@orpc/openapi-client/standard';
2
+ import { Context, Router } from '@orpc/server';
3
+ import { StandardHandlerOptions, StandardHandler } from '@orpc/server/standard';
4
+
5
+ interface StandardOpenAPIHandlerOptions<T extends Context> extends StandardHandlerOptions<T>, StandardOpenAPIJsonSerializerOptions {
6
+ }
7
+ declare class StandardOpenAPIHandler<T extends Context> extends StandardHandler<T> {
8
+ constructor(router: Router<any, T>, options: NoInfer<StandardOpenAPIHandlerOptions<T>>);
9
+ }
10
+
11
+ export { StandardOpenAPIHandler as a };
12
+ export type { StandardOpenAPIHandlerOptions as S };
@@ -0,0 +1,12 @@
1
+ import { StandardOpenAPIJsonSerializerOptions } from '@orpc/openapi-client/standard';
2
+ import { Context, Router } from '@orpc/server';
3
+ import { StandardHandlerOptions, StandardHandler } from '@orpc/server/standard';
4
+
5
+ interface StandardOpenAPIHandlerOptions<T extends Context> extends StandardHandlerOptions<T>, StandardOpenAPIJsonSerializerOptions {
6
+ }
7
+ declare class StandardOpenAPIHandler<T extends Context> extends StandardHandler<T> {
8
+ constructor(router: Router<any, T>, options: NoInfer<StandardOpenAPIHandlerOptions<T>>);
9
+ }
10
+
11
+ export { StandardOpenAPIHandler as a };
12
+ export type { StandardOpenAPIHandlerOptions as S };
@@ -1,9 +1,10 @@
1
+ import { standardizeHTTPPath, StandardOpenAPIJsonSerializer, StandardBracketNotationSerializer, StandardOpenAPISerializer } from '@orpc/openapi-client/standard';
2
+ import { StandardHandler } from '@orpc/server/standard';
1
3
  import { fallbackContractConfig } from '@orpc/contract';
2
4
  import { isObject } from '@orpc/shared';
3
5
  import { toHttpPath } from '@orpc/client/standard';
4
6
  import { traverseContractProcedures, isProcedure, getLazyMeta, unlazy, getRouter, createContractedProcedure } from '@orpc/server';
5
7
  import { createRouter, addRoute, findRoute } from 'rou3';
6
- import { standardizeHTTPPath } from '@orpc/openapi-client/standard';
7
8
 
8
9
  class StandardOpenAPICodec {
9
10
  constructor(serializer) {
@@ -143,4 +144,15 @@ class StandardOpenAPIMatcher {
143
144
  }
144
145
  }
145
146
 
146
- export { StandardOpenAPICodec as S, StandardOpenAPIMatcher as a, decodeParams as d, toRou3Pattern as t };
147
+ class StandardOpenAPIHandler extends StandardHandler {
148
+ constructor(router, options) {
149
+ const jsonSerializer = new StandardOpenAPIJsonSerializer(options);
150
+ const bracketNotationSerializer = new StandardBracketNotationSerializer();
151
+ const serializer = new StandardOpenAPISerializer(jsonSerializer, bracketNotationSerializer);
152
+ const matcher = new StandardOpenAPIMatcher();
153
+ const codec = new StandardOpenAPICodec(serializer);
154
+ super(router, matcher, codec, options);
155
+ }
156
+ }
157
+
158
+ export { StandardOpenAPICodec as S, StandardOpenAPIHandler as a, StandardOpenAPIMatcher as b, decodeParams as d, toRou3Pattern as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/openapi",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.5",
4
+ "version": "1.0.0-beta.7",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -29,16 +29,6 @@
29
29
  "import": "./dist/adapters/fetch/index.mjs",
30
30
  "default": "./dist/adapters/fetch/index.mjs"
31
31
  },
32
- "./hono": {
33
- "types": "./dist/adapters/hono/index.d.mts",
34
- "import": "./dist/adapters/hono/index.mjs",
35
- "default": "./dist/adapters/hono/index.mjs"
36
- },
37
- "./next": {
38
- "types": "./dist/adapters/next/index.d.mts",
39
- "import": "./dist/adapters/next/index.mjs",
40
- "default": "./dist/adapters/next/index.mjs"
41
- },
42
32
  "./node": {
43
33
  "types": "./dist/adapters/node/index.d.mts",
44
34
  "import": "./dist/adapters/node/index.mjs",
@@ -52,12 +42,12 @@
52
42
  "json-schema-typed": "^8.0.1",
53
43
  "openapi-types": "^12.1.3",
54
44
  "rou3": "^0.5.1",
55
- "@orpc/client": "1.0.0-beta.5",
56
- "@orpc/contract": "1.0.0-beta.5",
57
- "@orpc/server": "1.0.0-beta.5",
58
- "@orpc/openapi-client": "1.0.0-beta.5",
59
- "@orpc/shared": "1.0.0-beta.5",
60
- "@orpc/standard-server": "1.0.0-beta.5"
45
+ "@orpc/client": "1.0.0-beta.7",
46
+ "@orpc/contract": "1.0.0-beta.7",
47
+ "@orpc/server": "1.0.0-beta.7",
48
+ "@orpc/shared": "1.0.0-beta.7",
49
+ "@orpc/openapi-client": "1.0.0-beta.7",
50
+ "@orpc/standard-server": "1.0.0-beta.7"
61
51
  },
62
52
  "devDependencies": {
63
53
  "zod": "^3.24.2"
@@ -1,6 +0,0 @@
1
- export { OpenAPIHandler } from '../fetch/index.mjs';
2
- import '@orpc/server';
3
- import '@orpc/server/fetch';
4
- import '../../shared/openapi.IfmmOyba.mjs';
5
- import '@orpc/openapi-client/standard';
6
- import '@orpc/server/standard';
@@ -1,6 +0,0 @@
1
- export { OpenAPIHandler } from '../fetch/index.js';
2
- import '@orpc/server';
3
- import '@orpc/server/fetch';
4
- import '../../shared/openapi.IfmmOyba.js';
5
- import '@orpc/openapi-client/standard';
6
- import '@orpc/server/standard';
@@ -1,10 +0,0 @@
1
- export { O as OpenAPIHandler } from '../../shared/openapi.CGZ7t-VN.mjs';
2
- import '@orpc/openapi-client/standard';
3
- import '@orpc/server/fetch';
4
- import '@orpc/server/standard';
5
- import '../../shared/openapi.sdeu0I7N.mjs';
6
- import '@orpc/contract';
7
- import '@orpc/shared';
8
- import '@orpc/client/standard';
9
- import '@orpc/server';
10
- import 'rou3';
@@ -1,6 +0,0 @@
1
- export { OpenAPIHandler } from '../fetch/index.mjs';
2
- import '@orpc/server';
3
- import '@orpc/server/fetch';
4
- import '../../shared/openapi.IfmmOyba.mjs';
5
- import '@orpc/openapi-client/standard';
6
- import '@orpc/server/standard';
@@ -1,6 +0,0 @@
1
- export { OpenAPIHandler } from '../fetch/index.js';
2
- import '@orpc/server';
3
- import '@orpc/server/fetch';
4
- import '../../shared/openapi.IfmmOyba.js';
5
- import '@orpc/openapi-client/standard';
6
- import '@orpc/server/standard';
@@ -1,10 +0,0 @@
1
- export { O as OpenAPIHandler } from '../../shared/openapi.CGZ7t-VN.mjs';
2
- import '@orpc/openapi-client/standard';
3
- import '@orpc/server/fetch';
4
- import '@orpc/server/standard';
5
- import '../../shared/openapi.sdeu0I7N.mjs';
6
- import '@orpc/contract';
7
- import '@orpc/shared';
8
- import '@orpc/client/standard';
9
- import '@orpc/server';
10
- import 'rou3';
@@ -1,17 +0,0 @@
1
- import { StandardOpenAPIJsonSerializer, StandardBracketNotationSerializer, StandardOpenAPISerializer } from '@orpc/openapi-client/standard';
2
- import { FetchHandler } from '@orpc/server/fetch';
3
- import { StandardHandler } from '@orpc/server/standard';
4
- import { a as StandardOpenAPIMatcher, S as StandardOpenAPICodec } from './openapi.sdeu0I7N.mjs';
5
-
6
- class OpenAPIHandler extends FetchHandler {
7
- constructor(router, options = {}) {
8
- const jsonSerializer = new StandardOpenAPIJsonSerializer(options);
9
- const bracketNotationSerializer = new StandardBracketNotationSerializer();
10
- const serializer = new StandardOpenAPISerializer(jsonSerializer, bracketNotationSerializer);
11
- const matcher = new StandardOpenAPIMatcher();
12
- const codec = new StandardOpenAPICodec(serializer);
13
- super(new StandardHandler(router, matcher, codec, options), options);
14
- }
15
- }
16
-
17
- export { OpenAPIHandler as O };
@@ -1,8 +0,0 @@
1
- import { StandardOpenAPIJsonSerializerOptions } from '@orpc/openapi-client/standard';
2
- import { Context } from '@orpc/server';
3
- import { StandardHandlerOptions } from '@orpc/server/standard';
4
-
5
- interface StandardOpenAPIHandlerOptions<T extends Context> extends StandardHandlerOptions<T>, StandardOpenAPIJsonSerializerOptions {
6
- }
7
-
8
- export type { StandardOpenAPIHandlerOptions as S };
@@ -1,8 +0,0 @@
1
- import { StandardOpenAPIJsonSerializerOptions } from '@orpc/openapi-client/standard';
2
- import { Context } from '@orpc/server';
3
- import { StandardHandlerOptions } from '@orpc/server/standard';
4
-
5
- interface StandardOpenAPIHandlerOptions<T extends Context> extends StandardHandlerOptions<T>, StandardOpenAPIJsonSerializerOptions {
6
- }
7
-
8
- export type { StandardOpenAPIHandlerOptions as S };