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

@trpc/client

Package Overview
Dependencies
Maintainers
3
Versions
1066
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trpc/client - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0-alpha.0

10

dist/createTRPCClient.d.ts

@@ -1,2 +0,2 @@

import type { AnyRouter, DataTransformer, HTTPResponseEnvelope, HTTPSuccessResponseEnvelope, inferHandlerInput, inferRouteInput, inferRouteOutput, inferSubscriptionOutput, Maybe } from '@trpc/server';
import type { AnyRouter, DataTransformer, HTTPResponseEnvelope, HTTPSuccessResponseEnvelope, inferHandlerInput, inferProcedureInput, inferProcedureOutput, inferSubscriptionOutput, Maybe } from '@trpc/server';
declare type CancelFn = () => void;

@@ -51,6 +51,6 @@ declare type CancellablePromise<T = unknown> = Promise<T> & {

};
query<TQueries extends TRouter['_def']['queries'], TPath extends string & keyof TQueries>(path: TPath, ...args: inferHandlerInput<TQueries[TPath]>): CancellablePromise<inferRouteOutput<TQueries[TPath]>>;
mutation<TMutations extends TRouter['_def']['mutations'], TPath extends string & keyof TMutations>(path: TPath, ...args: inferHandlerInput<TMutations[TPath]>): CancellablePromise<inferRouteOutput<TMutations[TPath]>>;
subscriptionOnce<TSubscriptions extends TRouter['_def']['subscriptions'], TPath extends string & keyof TSubscriptions, TOutput extends inferSubscriptionOutput<TRouter, TPath>, TInput extends inferRouteInput<TSubscriptions[TPath]>>(path: TPath, input: TInput): CancellablePromise<TOutput[]>;
subscription<TSubscriptions extends TRouter['_def']['subscriptions'], TPath extends string & keyof TSubscriptions, TOutput extends inferSubscriptionOutput<TRouter, TPath>, TInput extends inferRouteInput<TSubscriptions[TPath]>>(path: TPath, opts: {
query<TQueries extends TRouter['_def']['queries'], TPath extends string & keyof TQueries>(path: TPath, ...args: inferHandlerInput<TQueries[TPath]>): CancellablePromise<inferProcedureOutput<TQueries[TPath]>>;
mutation<TMutations extends TRouter['_def']['mutations'], TPath extends string & keyof TMutations>(path: TPath, ...args: inferHandlerInput<TMutations[TPath]>): CancellablePromise<inferProcedureOutput<TMutations[TPath]>>;
subscriptionOnce<TSubscriptions extends TRouter['_def']['subscriptions'], TPath extends string & keyof TSubscriptions, TOutput extends inferSubscriptionOutput<TRouter, TPath>, TInput extends inferProcedureInput<TSubscriptions[TPath]>>(path: TPath, input: TInput): CancellablePromise<TOutput[]>;
subscription<TSubscriptions extends TRouter['_def']['subscriptions'], TPath extends string & keyof TSubscriptions, TOutput extends inferSubscriptionOutput<TRouter, TPath>, TInput extends inferProcedureInput<TSubscriptions[TPath]>>(path: TPath, opts: {
initialInput: TInput;

@@ -57,0 +57,0 @@ onError?: (err: NextInputError | TRPCClientError) => void;

{
"name": "@trpc/client",
"version": "2.2.0",
"version": "3.0.0-alpha.0",
"description": "TRPC Client lib",

@@ -30,3 +30,3 @@ "author": "KATT",

"devDependencies": {
"@trpc/server": "^2.2.0"
"@trpc/server": "^3.0.0-alpha.0"
},

@@ -36,3 +36,3 @@ "publishConfig": {

},
"gitHead": "e9f4f7750c0ff7b66c1ff291e45a42eb86d05f8a"
"gitHead": "a98d84732e3d81a2fbdb5255886a64e70c78ddec"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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