fix export issue

Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
This commit is contained in:
Aramis Sennyey
2023-09-18 18:54:06 -04:00
parent 7c83975531
commit fcd4cf6b9b
2 changed files with 48 additions and 3 deletions
+47 -3
View File
@@ -74,6 +74,13 @@ interface CookieObject extends ParameterObject {
style?: 'form';
}
// @public (undocumented)
export type CookieParameters<
Doc extends RequiredDoc,
Path extends PathTemplate<Extract<keyof Doc['paths'], string>>,
Method extends DocPathTemplateMethod<Doc, Path>,
> = CookieSchema<Doc, TemplateToDocPath<Doc, Path>, Method>;
// @public (undocumented)
type CookieSchema<
Doc extends RequiredDoc,
@@ -249,6 +256,13 @@ interface HeaderObject extends ParameterObject {
style: 'simple';
}
// @public (undocumented)
export type HeaderParameters<
Doc extends RequiredDoc,
Path extends PathTemplate<Extract<keyof Doc['paths'], string>>,
Method extends DocPathTemplateMethod<Doc, Path>,
> = HeaderSchema<Doc, TemplateToDocPath<Doc, Path>, Method>;
// @public (undocumented)
type HeaderSchema<
Doc extends RequiredDoc,
@@ -376,7 +390,7 @@ declare namespace internal {
RequestBody,
RequestBodySchema,
RequestBodyToJsonSchema,
Response_2 as Response,
Response_3 as Response,
ResponseSchemas,
ResponseBodyToJsonSchema,
};
@@ -476,6 +490,13 @@ interface PathObject extends ParameterObject {
style?: 'simple' | 'label' | 'matrix';
}
// @public (undocumented)
export type PathParameters<
Doc extends RequiredDoc,
Path extends PathTemplate<Extract<keyof Doc['paths'], string>>,
Method extends DocPathTemplateMethod<Doc, Path>,
> = PathSchema<Doc, TemplateToDocPath<Doc, Path>, Method>;
// @public (undocumented)
type PathSchema<
Doc extends RequiredDoc,
@@ -518,6 +539,13 @@ interface QueryObject extends ParameterObject {
style?: 'form' | 'deepObject' | 'pipeDelimited' | 'spaceDelimited';
}
// @public (undocumented)
export type QueryParameters<
Doc extends RequiredDoc,
Path extends PathTemplate<Extract<keyof Doc['paths'], string>>,
Method extends DocPathTemplateMethod<Doc, Path>,
> = QuerySchema<Doc, TemplateToDocPath<Doc, Path>, Method>;
// @public (undocumented)
type QuerySchema<
Doc extends RequiredDoc,
@@ -525,6 +553,14 @@ type QuerySchema<
Method extends DocPathMethod<Doc, Path>,
> = ParametersSchema<Doc, Path, Method, ImmutableQueryObject>;
// @public (undocumented)
type Request_2<
Doc extends RequiredDoc,
Path extends PathTemplate<Extract<keyof Doc['paths'], string>>,
Method extends DocPathTemplateMethod<Doc, Path>,
> = RequestBodyToJsonSchema<Doc, TemplateToDocPath<Doc, Path>, Method>;
export { Request_2 as Request };
// @public (undocumented)
type RequestBody<
Doc extends RequiredDoc,
@@ -574,6 +610,14 @@ type RequiredMap<
// @public (undocumented)
type Response_2<
Doc extends RequiredDoc,
Path extends PathTemplate<Extract<keyof Doc['paths'], string>>,
Method extends DocPathTemplateMethod<Doc, Path>,
> = ResponseBodyToJsonSchema<Doc, TemplateToDocPath<Doc, Path>, Method>;
export { Response_2 as Response };
// @public (undocumented)
type Response_3<
Doc extends RequiredDoc,
Path extends DocPath<Doc>,
Method extends DocPathMethod<Doc, Path>,
@@ -609,13 +653,13 @@ type ResponseSchemas<
Doc,
Path,
Method
>['responses']]: Response_2<
>['responses']]: Response_3<
Doc,
Path,
Method,
StatusCode
> extends ImmutableResponseObject
? ObjectWithContentSchema<Doc, Response_2<Doc, Path, Method, StatusCode>>
? ObjectWithContentSchema<Doc, Response_3<Doc, Path, Method, StatusCode>>
: never;
};
@@ -22,5 +22,6 @@
import * as internal from './types';
export { internal };
export * from './utility';
export type { ApiRouter } from './router';
export { createValidatedOpenApiRouter } from './stub';