Interface: AppRouteOptions<TRoute>
@ts-rest/express.AppRouteOptions
Type parameters
Name | Type |
---|---|
TRoute | extends 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:66
middleware
• Optional
middleware: TsRestRequestHandler
<TRoute
>[]
Defined in
libs/ts-rest/express/src/lib/types.ts:65