Skip to main content
Version: Next

internal.StaticQueryParamsSchema

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

Signature:

export type StaticQueryParamsSchema<Doc extends EndpointMap, Endpoint extends DocEndpoint<Doc>, Method extends DocEndpointMethod<Doc, Endpoint>> = `#${Method}|${Endpoint}` extends keyof Doc ? 'query' extends keyof Doc[`#${Method}|${Endpoint}`] ? Doc[`#${Method}|${Endpoint}`]['query'] : never : never;

References: EndpointMap, DocEndpoint, DocEndpointMethod