remove unused generic type

This commit is contained in:
Robert Soriano
2022-10-31 09:55:00 -07:00
parent b7f72eac0a
commit 8ba8d79114
2 changed files with 1 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ const { data: todos, pending, error, refresh } = await $client.todo.getTodos.que
trpc: {
abortOnUnmount: true,
},
server: false,
})
</script>

View File

@@ -28,7 +28,6 @@ interface TRPCOptions extends TRPCRequestOptions {
*/
export type DecorateProcedure<
TProcedure extends AnyProcedure,
TPath extends string,
> = TProcedure extends AnyQueryProcedure
? {
query: <
@@ -63,6 +62,6 @@ export type DecoratedProcedureRecord<
`${TPath}${TKey & string}.`
>
: TProcedures[TKey] extends AnyProcedure
? DecorateProcedure<TProcedures[TKey], `${TPath}${TKey & string}`>
? DecorateProcedure<TProcedures[TKey]>
: never;
}