@trpc/client
Advanced tools
Comparing version 2.2.0 to 3.0.0-alpha.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
276566
2