@@ -4,7 +4,7 @@
|
||||
|
||||
```ts
|
||||
import type { ContentObject } from 'openapi3-ts';
|
||||
import type { default as core_2 } from 'express-serve-static-core';
|
||||
import type core from 'express-serve-static-core';
|
||||
import { FromSchema } from 'json-schema-to-ts';
|
||||
import { JSONSchema7 } from 'json-schema-to-ts';
|
||||
import type { OpenAPIObject } from 'openapi3-ts';
|
||||
@@ -79,76 +79,6 @@ type CookieSchema<
|
||||
Method extends DocPathMethod<Doc, Path>,
|
||||
> = ParametersSchema<Doc, DocPath<Doc, Path>, Method, ImmutableCookieObject>;
|
||||
|
||||
declare namespace core {
|
||||
export {
|
||||
RequiredDoc,
|
||||
PathDoc,
|
||||
ValueOf,
|
||||
PathTemplate,
|
||||
DocPath,
|
||||
DocPathTemplate,
|
||||
DocPathMethod,
|
||||
MethodAwareDocPath,
|
||||
DocOperation,
|
||||
ComponentTypes,
|
||||
ComponentRef,
|
||||
SchemaRef,
|
||||
ObjectWithContentSchema,
|
||||
UnionToIntersection,
|
||||
LastOf,
|
||||
Push,
|
||||
TuplifyUnion,
|
||||
ConvertAll,
|
||||
UnknownIfNever,
|
||||
ToTypeSafe,
|
||||
DiscriminateUnion,
|
||||
MapDiscriminatedUnion,
|
||||
PickOptionalKeys,
|
||||
PickRequiredKeys,
|
||||
OptionalMap,
|
||||
RequiredMap,
|
||||
FullMap,
|
||||
Filter,
|
||||
DocRequestHandler,
|
||||
DocRequestHandlerParams,
|
||||
DocRequestMatcher,
|
||||
Immutable,
|
||||
ImmutableObject,
|
||||
ImmutableReferenceObject,
|
||||
ImmutableOpenAPIObject,
|
||||
ImmutableContentObject,
|
||||
ImmutableRequestBodyObject,
|
||||
ImmutableResponseObject,
|
||||
ImmutableParameterObject,
|
||||
HeaderObject,
|
||||
ImmutableHeaderObject,
|
||||
CookieObject,
|
||||
ImmutableCookieObject,
|
||||
QueryObject,
|
||||
ImmutableQueryObject,
|
||||
PathObject,
|
||||
ImmutablePathObject,
|
||||
ImmutableSchemaObject,
|
||||
DocParameter,
|
||||
DocParameters,
|
||||
ResolveDocParameterSchema,
|
||||
ParameterSchema,
|
||||
MapToSchema,
|
||||
ParametersSchema,
|
||||
HeaderSchema,
|
||||
CookieSchema,
|
||||
PathSchema,
|
||||
QuerySchema,
|
||||
RequestBody,
|
||||
RequestBodySchema,
|
||||
RequestBodyToJsonSchema,
|
||||
Response_2 as Response,
|
||||
ResponseSchemas,
|
||||
ResponseBodyToJsonSchema,
|
||||
};
|
||||
}
|
||||
export { core };
|
||||
|
||||
// @public (undocumented)
|
||||
type DiscriminateUnion<T, K extends keyof T, V extends T[K]> = Extract<
|
||||
T,
|
||||
@@ -224,7 +154,7 @@ type DocRequestHandler<
|
||||
Doc extends RequiredDoc,
|
||||
Path extends DocPathTemplate<Doc>,
|
||||
Method extends keyof Doc['paths'][Path],
|
||||
> = core_2.RequestHandler<
|
||||
> = core.RequestHandler<
|
||||
PathSchema<Doc, Path, Method>,
|
||||
ResponseBodyToJsonSchema<Doc, Path, Method>,
|
||||
RequestBodyToJsonSchema<Doc, Path, Method>,
|
||||
@@ -237,7 +167,7 @@ type DocRequestHandlerParams<
|
||||
Doc extends RequiredDoc,
|
||||
Path extends DocPathTemplate<Doc>,
|
||||
Method extends keyof Doc['paths'][Path],
|
||||
> = core_2.RequestHandlerParams<
|
||||
> = core.RequestHandlerParams<
|
||||
PathSchema<Doc, Path, Method>,
|
||||
ResponseBodyToJsonSchema<Doc, Path, Method>,
|
||||
RequestBodyToJsonSchema<Doc, Path, Method>,
|
||||
@@ -351,6 +281,76 @@ type ImmutableResponseObject = ImmutableObject<ResponseObject>;
|
||||
// @public (undocumented)
|
||||
type ImmutableSchemaObject = ImmutableObject<SchemaObject>;
|
||||
|
||||
declare namespace internal {
|
||||
export {
|
||||
RequiredDoc,
|
||||
PathDoc,
|
||||
ValueOf,
|
||||
PathTemplate,
|
||||
DocPath,
|
||||
DocPathTemplate,
|
||||
DocPathMethod,
|
||||
MethodAwareDocPath,
|
||||
DocOperation,
|
||||
ComponentTypes,
|
||||
ComponentRef,
|
||||
SchemaRef,
|
||||
ObjectWithContentSchema,
|
||||
UnionToIntersection,
|
||||
LastOf,
|
||||
Push,
|
||||
TuplifyUnion,
|
||||
ConvertAll,
|
||||
UnknownIfNever,
|
||||
ToTypeSafe,
|
||||
DiscriminateUnion,
|
||||
MapDiscriminatedUnion,
|
||||
PickOptionalKeys,
|
||||
PickRequiredKeys,
|
||||
OptionalMap,
|
||||
RequiredMap,
|
||||
FullMap,
|
||||
Filter,
|
||||
DocRequestHandler,
|
||||
DocRequestHandlerParams,
|
||||
DocRequestMatcher,
|
||||
Immutable,
|
||||
ImmutableObject,
|
||||
ImmutableReferenceObject,
|
||||
ImmutableOpenAPIObject,
|
||||
ImmutableContentObject,
|
||||
ImmutableRequestBodyObject,
|
||||
ImmutableResponseObject,
|
||||
ImmutableParameterObject,
|
||||
HeaderObject,
|
||||
ImmutableHeaderObject,
|
||||
CookieObject,
|
||||
ImmutableCookieObject,
|
||||
QueryObject,
|
||||
ImmutableQueryObject,
|
||||
PathObject,
|
||||
ImmutablePathObject,
|
||||
ImmutableSchemaObject,
|
||||
DocParameter,
|
||||
DocParameters,
|
||||
ResolveDocParameterSchema,
|
||||
ParameterSchema,
|
||||
MapToSchema,
|
||||
ParametersSchema,
|
||||
HeaderSchema,
|
||||
CookieSchema,
|
||||
PathSchema,
|
||||
QuerySchema,
|
||||
RequestBody,
|
||||
RequestBodySchema,
|
||||
RequestBodyToJsonSchema,
|
||||
Response_2 as Response,
|
||||
ResponseSchemas,
|
||||
ResponseBodyToJsonSchema,
|
||||
};
|
||||
}
|
||||
export { internal };
|
||||
|
||||
// @public (undocumented)
|
||||
type LastOf<T> = UnionToIntersection<
|
||||
T extends any ? () => T : never
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
import * as core from './types';
|
||||
import * as internal from './types';
|
||||
|
||||
export { core };
|
||||
export { internal };
|
||||
export type { ApiRouter } from './router';
|
||||
|
||||
Reference in New Issue
Block a user