Feature/parallel booking availability (#3087)

This commit is contained in:
Omar López authored and GitHub committed 2022-06-19 16:02:00 +01:00
1 parent 7599f2384e
commit 2d28ca61a4
21 files changed
+242 -121

No files matched your search

+7 -1
View File
@@ -101,7 +101,13 @@ type TError = TRPCClientErrorLike<AppRouter>;
const withQuery = <TPath extends keyof TQueryValues & string>(
pathAndInput: [path: TPath, ...args: inferHandlerInput<TQueries[TPath]>],
params?: UseTRPCQueryOptions<TPath, TQueryValues[TPath]["input"], TQueryValues[TPath]["output"], TError>
params?: UseTRPCQueryOptions<
TPath,
TQueryValues[TPath]["input"],
TQueryValues[TPath]["output"],
TQueryValues[TPath]["output"],
TError
>
) => {
return function WithQuery(
opts: Omit<