RPC-like client, contract, and server implementation for a pure REST API
MIT License
Bot releases are visible (Hide)
baseHeaders
and headers
in contracts when they are defined using plain typesPublished by github-actions[bot] 3 months ago
includeThrownErrorsInErrorType
in react query client options. This should include the Error
exception in the error
type to cover non-HTTP errors such as network or CORS errors. Disabled by default so it does not break existing code, but extremely recommended to switch on.Published by github-actions[bot] 3 months ago
error
type to include Error
exception type to handle non-response fetch errorsPublished by github-actions[bot] 3 months ago
tsr.*
methods have been swapped. Now you don't have to pass typeof contract
first. You can now pass your request extension type only.tsr.routerBuilder(contract)
!Published by github-actions[bot] 3 months ago
RequestValidationErrorSchema
for default request validation error responses.RequestValidationErrorSchema
for default request validation error responses.RequestValidationErrorSchema
for default request validation error responses.pathPrefix
is used multiple times in nested contractsRequestValidationErrorSchema
for default request validation error responses.RequestValidationErrorSchema
for default request validation error responses.RequestValidationErrorSchema
for default request validation error responses.Published by github-actions[bot] 3 months ago
Published by github-actions[bot] 6 months ago
Published by github-actions[bot] 6 months ago
createSingleRouteHandler
Published by github-actions[bot] 6 months ago
appRoute
to route handlers@tanstack/react-query
from @ts-rest/react-query/tanstack
to fix No QueryClient set
errors caused by version mismatchesPublished by github-actions[bot] 6 months ago
type: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsontype: module
to package.jsonPublished by github-actions[bot] 6 months ago
appRoute
to route handlers@tanstack/react-query
from @ts-rest/react-query/tanstack
to fix No QueryClient set
errors caused by version mismatchesPublished by github-actions[bot] 6 months ago
Published by github-actions[bot] 6 months ago
TsRestResponseError
so common responses can be thrown easilyPublished by github-actions[bot] 6 months ago
TsRestResponseError
can be thrown from any server packageTsRestResponseError
can be thrown from any server packageTsRestResponseError
can be thrown from any server packageTsRestResponseError
can be thrown from any server packageTsRestResponseError
can be thrown from any server packageoperationMapper
option to extend OpenAPI operationsTsRestResponseError
can be thrown from any server packagePublished by github-actions[bot] 6 months ago
Published by github-actions[bot] 6 months ago
Published by github-actions[bot] 7 months ago
@ts-rest/serverless/next
handler
Published by github-actions[bot] 7 months ago
select
optionselect
optionselect
optionPublished by github-actions[bot] 7 months ago
params
when using optional params without defining pathParams
c.responses()
Published by github-actions[bot] 7 months ago