@ts-rest/core
Advanced tools
Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "@ts-rest/core", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "RPC-like experience over a regular REST API, with type safe server implementations 🪄", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
import { AppRoute, AppRouter } from './dsl'; | ||
import { Without } from './type-utils'; | ||
declare type AppRouteShape<T extends AppRoute> = (params: Parameters<T['path']>[0]) => Promise<T['response']>; | ||
declare type AppRouteShape<T extends AppRoute> = Parameters<T['path']>[0] extends never ? (...params: unknown[]) => Promise<T['response']> : (params: Parameters<T['path']>[0], ...moreParams: unknown[]) => Promise<T['response']>; | ||
declare type AppRouterControllerShape<T extends AppRouter> = { | ||
@@ -5,0 +5,0 @@ [K in keyof T]: T[K] extends AppRouter ? undefined : T[K] extends AppRoute ? AppRouteShape<T[K]> : never; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28519