Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trpc/server

Package Overview
Dependencies
Maintainers
2
Versions
1072
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trpc/server - npm Package Compare versions

Comparing version 2.1.0-alpha.0 to 2.1.0-alpha.1

3

dist/router.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc