@trpc/server
Advanced tools
Comparing version 2.1.0-alpha.0 to 2.1.0-alpha.1
@@ -29,3 +29,4 @@ import { Subscription } from './subscription'; | ||
export declare type inferSubscriptionOutput<TRouter extends AnyRouter, TPath extends keyof TRouter['_def']['subscriptions']> = ReturnType<inferAsyncReturnType<TRouter['_def']['subscriptions'][TPath]['resolve']>['output']>; | ||
export declare type inferHandlerFn<TRoutes extends RouteRecord<any, any, any>> = <TPath extends keyof TRoutes & string, TRoute extends TRoutes[TPath]>(path: TPath, ...args: TRoute extends RouteWithInput<any, any, any> ? [inferRouteInput<TRoute>] : [undefined?]) => Promise<inferRouteOutput<TRoutes[TPath]>>; | ||
export declare type inferHandlerInput<TRoute extends Route> = TRoute extends RouteWithInput<any, any, any> ? [inferRouteInput<TRoute>] : [undefined?]; | ||
export declare type inferHandlerFn<TRoutes extends RouteRecord<any, any, any>> = <TRoute extends TRoutes[TPath], TPath extends keyof TRoutes & string>(path: TPath, ...args: TRoute extends RouteWithInput<any, any, any> ? [inferRouteInput<TRoute>] : [undefined?]) => Promise<inferRouteOutput<TRoutes[TPath]>>; | ||
export declare type AnyRouter<TContext = any> = Router<TContext, any, any, any>; | ||
@@ -32,0 +33,0 @@ export declare class Router<TContext, TQueries extends RouteRecord<TContext>, TMutations extends RouteRecord<TContext>, TSubscriptions extends RouteRecord<TContext, unknown, Subscription<unknown>>> { |
@@ -33,2 +33,3 @@ /// <reference types="node" /> | ||
* This method is just here to help with `inferSubscriptionOutput` which I can't get working without it | ||
* @deprecated | ||
*/ | ||
@@ -35,0 +36,0 @@ protected output(): TOutput; |
@@ -67,2 +67,3 @@ "use strict"; | ||
* This method is just here to help with `inferSubscriptionOutput` which I can't get working without it | ||
* @deprecated | ||
*/ | ||
@@ -69,0 +70,0 @@ Subscription.prototype.output = function () { |
{ | ||
"name": "@trpc/server", | ||
"version": "2.1.0-alpha.0", | ||
"version": "2.1.0-alpha.1", | ||
"description": "TRPC Server", | ||
@@ -52,3 +52,3 @@ "author": "KATT", | ||
}, | ||
"gitHead": "b4c073f0671c125c64722ba28b5f6309704f7770" | ||
"gitHead": "797c77a47a2b3b6324e7740cc829580134340f47" | ||
} |
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
46226
968
0