( contract: ApiRouteContract<TParams, TQuery, TBody, THeaders, TResponse, TError> )
| 79 | > |
| 80 | |
| 81 | export function defineRouteContract< |
| 82 | TParams extends ApiSchema | undefined = undefined, |
| 83 | TQuery extends ApiSchema | undefined = undefined, |
| 84 | TBody extends ApiSchema | undefined = undefined, |
| 85 | THeaders extends ApiSchema | undefined = undefined, |
| 86 | TResponse extends ResponseMode = ResponseMode, |
| 87 | TError extends ApiSchema | undefined = undefined, |
| 88 | >( |
| 89 | contract: ApiRouteContract<TParams, TQuery, TBody, THeaders, TResponse, TError> |
| 90 | ): ApiRouteContract<TParams, TQuery, TBody, THeaders, TResponse, TError> { |
| 91 | return contract |
| 92 | } |
| 93 | |
| 94 | export type ContractParams<C extends AnyApiRouteContract> = C extends ApiRouteContract< |
| 95 | infer TParams, |
no outgoing calls
no test coverage detected