Skip to main content
Version: Next

internal.Response

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

Signature:

export type Response<Doc extends RequiredDoc, Path extends DocPath<Doc>, Method extends DocPathMethod<Doc, Path>, StatusCode extends keyof DocOperation<Doc, Path, Method>['responses']> = DocOperation<Doc, Path, Method>['responses'][StatusCode] extends ImmutableReferenceObject ? 'responses' extends ComponentTypes<Doc> ? ComponentRef<Doc, 'responses', DocOperation<Doc, Path, Method>['responses'][StatusCode]> : never : DocOperation<Doc, Path, Method>['responses'][StatusCode];

References: RequiredDoc, DocPath, DocPathMethod, DocOperation, ImmutableReferenceObject, ComponentTypes, ComponentRef