UseCaseFitsRoute:[Ctx]extends[UseCaseRouteCtx<UC>] ?[UseCaseRouteOutput<UC>]extends[ SuccessBodyFromKeys<C["responses"],Success2xxKeys<C["responses"]>>, ] ?unknown :{ "~beignetError":"useCase output does not match the contract's success response schema"; } :{ "~beignetError":"useCase requires a context this server does not provide"; }
Constraint that checks a use case against the route that binds it.
Produces a readable branded mismatch object on the useCase property when
the use case requires a context the server does not provide, or when its
output does not match the contract's declared success response schema.
Constraint that checks a use case against the route that binds it.
Produces a readable branded mismatch object on the
useCaseproperty when the use case requires a context the server does not provide, or when its output does not match the contract's declared success response schema.