Skip to main content

Interface: AppRouteOptions<TRoute>

@ts-rest/express.AppRouteOptions

Type parameters

NameType
TRouteextends AppRoute

Properties

handler

handler: TRoute extends AppRouteQuery ? AppRouteQueryImplementation<TRoute> : TRoute extends AppRouteMutation ? AppRouteMutationImplementation<TRoute> : never

Defined in

libs/ts-rest/express/src/lib/types.ts:65


middleware

Optional middleware: TsRestRequestHandler<TRoute>[]

Defined in

libs/ts-rest/express/src/lib/types.ts:64