Skip to main content
Version: Next

internal.DocRequestHandlerParams

Home > @backstage/backend-openapi-utils > internal > DocRequestHandlerParams

Typed express error handler / request handler union type.

Signature:

export type DocRequestHandlerParams<Doc extends RequiredDoc, Path extends DocPath<Doc>, Method extends DocPathMethod<Doc, Path>> = core.RequestHandlerParams<PathSchema<Doc, Path, Method>, ResponseBodyToJsonSchema<Doc, Path, Method>, RequestBodyToJsonSchema<Doc, Path, Method>, QuerySchema<Doc, Path, Method>, Record<string, string>>;

References: RequiredDoc, DocPath, DocPathMethod, PathSchema, ResponseBodyToJsonSchema, RequestBodyToJsonSchema, QuerySchema