initial work
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com> Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
@@ -31,5 +31,10 @@ export type {
|
||||
PathParameters,
|
||||
} from './utility';
|
||||
export type { ApiRouter } from './router';
|
||||
export type {
|
||||
RequestMatcherByModelAndPath,
|
||||
RequestMatcherByModelAndPathParams,
|
||||
} from './types/express';
|
||||
export type { PathTemplate } from './types/common';
|
||||
export { createValidatedOpenApiRouter, getOpenApiSpecRoute } from './stub';
|
||||
export { wrapInOpenApiTestServer, wrapServer } from './testUtils';
|
||||
|
||||
@@ -100,3 +100,29 @@ export interface DocRequestMatcher<
|
||||
>
|
||||
): T;
|
||||
}
|
||||
|
||||
export type RequestMatcherByModelAndPath<
|
||||
PathParams,
|
||||
QueryParams,
|
||||
RequestBody,
|
||||
ResponseBody,
|
||||
> = core.RequestHandler<
|
||||
PathParams,
|
||||
ResponseBody,
|
||||
RequestBody,
|
||||
QueryParams,
|
||||
Record<string, string>
|
||||
>;
|
||||
|
||||
export type RequestMatcherByModelAndPathParams<
|
||||
PathParams,
|
||||
QueryParams,
|
||||
RequestBody,
|
||||
ResponseBody,
|
||||
> = core.RequestHandlerParams<
|
||||
PathParams,
|
||||
ResponseBody,
|
||||
RequestBody,
|
||||
QueryParams,
|
||||
Record<string, string>
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user