MCPcopy
hub / github.com/ts-rest/ts-rest / tsRestHandler

Function tsRestHandler

libs/ts-rest/nest/src/lib/ts-rest-nest-handler.ts:275–278  ·  view source on GitHub ↗
(
  contract: T,
  implementation: NestHandlerImplementation<T>,
)

Source from the content-addressed store, hash-verified

273 * @returns
274 */
275export const tsRestHandler = <T extends AppRouter | AppRoute>(
276 contract: T,
277 implementation: NestHandlerImplementation<T>,
278) => implementation;
279
280/**
281 * Error you can throw to return a response from a handler

Callers 15

getPostsMethod · 0.90
getPostMethod · 0.90
createPostMethod · 0.90
getPostsMethod · 0.90
getPostMethod · 0.90
createPostMethod · 0.90
handlerMethod · 0.90
handlerMethod · 0.90
handlerMethod · 0.90
handlerMethod · 0.90
postRequestMethod · 0.90
postRequestMethod · 0.90

Calls

no outgoing calls

Tested by 8

handlerMethod · 0.72
handlerMethod · 0.72
postRequestMethod · 0.72
postRequestMethod · 0.72
getRequestMethod · 0.72
handler2Method · 0.72
handlerMethod · 0.72
handlerMethod · 0.72