Type Alias UseCaseFitsRoute<Ctx, C, UC, InputMode>
UseCaseFitsRoute:[Ctx]extends[UseCaseRouteCtx<UC>] ?[UseCaseRouteOutput<UC>]extends[ SuccessBodyFromKeys<C["responses"],Success2xxKeys<C["responses"]>>, ] ?InputModeextends"mapped" ?unknown :[DefaultBinderRouteInput<C>]extends[UseCaseRouteInput<UC>] ?unknown :{ "~beignetError":"default binder input does not match the use case input; add an input mapper"; } :{ "~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, when its
output does not match the contract's declared success response schema, or
when the default binder input does not satisfy the use case input.
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, when its output does not match the contract's declared success response schema, or when the default binder input does not satisfy the use case input.