@trpc/client
Advanced tools
Comparing version 11.0.0-rc.708 to 11.0.0-rc.711
{ | ||
"bundleSize": 66027, | ||
"bundleOrigSize": 83110, | ||
"bundleReduction": 20.55, | ||
"bundleOrigSize": 83146, | ||
"bundleReduction": 20.59, | ||
"modules": [ | ||
@@ -184,3 +184,3 @@ { | ||
"size": 1185, | ||
"origSize": 4665, | ||
"origSize": 4701, | ||
"renderedExports": [ | ||
@@ -197,3 +197,3 @@ "clientCallTypeToProcedureType", | ||
"percent": 1.79, | ||
"reduction": 74.6 | ||
"reduction": 74.79 | ||
}, | ||
@@ -200,0 +200,0 @@ { |
import type { Unsubscribable } from '@trpc/server/observable'; | ||
import type { AnyProcedure, AnyRouter, inferClientTypes, inferProcedureInput, inferTransformedProcedureOutput, IntersectionError, ProcedureOptions, ProcedureType, RouterRecord } from '@trpc/server/unstable-core-do-not-import'; | ||
import type { AnyProcedure, AnyRouter, coerceToRouterRecord, inferClientTypes, inferProcedureInput, inferTransformedProcedureOutput, IntersectionError, ProcedureOptions, ProcedureType, RouterRecord } from '@trpc/server/unstable-core-do-not-import'; | ||
import type { CreateTRPCClientOptions } from './createTRPCUntypedClient'; | ||
@@ -32,3 +32,3 @@ import type { TRPCSubscriptionObserver, UntypedClientProperties } from './internals/TRPCUntypedClient'; | ||
type DecoratedProcedureRecord<TRouter extends AnyRouter, TRecord extends RouterRecord> = { | ||
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends RouterRecord ? DecoratedProcedureRecord<TRouter, $Value> : $Value extends AnyProcedure ? DecorateProcedure<$Value['_def']['type'], { | ||
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? DecorateProcedure<$Value['_def']['type'], { | ||
input: inferProcedureInput<$Value>; | ||
@@ -38,3 +38,3 @@ output: inferTransformedProcedureOutput<inferClientTypes<TRouter>, $Value>; | ||
transformer: inferClientTypes<TRouter>['transformer']; | ||
}> : never : never; | ||
}> : $Value extends RouterRecord | AnyRouter ? DecoratedProcedureRecord<TRouter, coerceToRouterRecord<$Value>> : never : never; | ||
}; | ||
@@ -41,0 +41,0 @@ /** @internal */ |
{ | ||
"name": "@trpc/client", | ||
"version": "11.0.0-rc.708+209e9ad21", | ||
"version": "11.0.0-rc.711+e82d26126", | ||
"description": "The tRPC client library", | ||
@@ -80,7 +80,7 @@ "author": "KATT", | ||
"peerDependencies": { | ||
"@trpc/server": "11.0.0-rc.708+209e9ad21", | ||
"@trpc/server": "11.0.0-rc.711+e82d26126", | ||
"typescript": ">=5.7.2" | ||
}, | ||
"devDependencies": { | ||
"@trpc/server": "11.0.0-rc.708+209e9ad21", | ||
"@trpc/server": "11.0.0-rc.711+e82d26126", | ||
"@types/isomorphic-fetch": "^0.0.39", | ||
@@ -103,3 +103,3 @@ "@types/node": "^22.9.0", | ||
], | ||
"gitHead": "209e9ad216fe81d7952f7f23368ff01d0979a784" | ||
"gitHead": "e82d261262fcb9d54747e0b223ee1e069ec2a9fd" | ||
} |
@@ -6,2 +6,3 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ | ||
AnyRouter, | ||
coerceToRouterRecord, | ||
inferClientTypes, | ||
@@ -84,17 +85,17 @@ inferProcedureInput, | ||
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value | ||
? $Value extends RouterRecord | ||
? DecoratedProcedureRecord<TRouter, $Value> | ||
: $Value extends AnyProcedure | ||
? DecorateProcedure< | ||
$Value['_def']['type'], | ||
{ | ||
input: inferProcedureInput<$Value>; | ||
output: inferTransformedProcedureOutput< | ||
inferClientTypes<TRouter>, | ||
$Value | ||
>; | ||
errorShape: inferClientTypes<TRouter>['errorShape']; | ||
transformer: inferClientTypes<TRouter>['transformer']; | ||
} | ||
> | ||
? $Value extends AnyProcedure | ||
? DecorateProcedure< | ||
$Value['_def']['type'], | ||
{ | ||
input: inferProcedureInput<$Value>; | ||
output: inferTransformedProcedureOutput< | ||
inferClientTypes<TRouter>, | ||
$Value | ||
>; | ||
errorShape: inferClientTypes<TRouter>['errorShape']; | ||
transformer: inferClientTypes<TRouter>['transformer']; | ||
} | ||
> | ||
: $Value extends RouterRecord | AnyRouter | ||
? DecoratedProcedureRecord<TRouter, coerceToRouterRecord<$Value>> | ||
: never | ||
@@ -101,0 +102,0 @@ : never; |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
306542
8001