Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/clients/tanstack-query/src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ type ProcedureHookGroup<Schema extends SchemaDef> = {
};
};

export type ProcedureHooks<Schema extends SchemaDef> = Schema extends { procedures: Record<string, any> }
export type ProcedureHooks<Schema extends SchemaDef> = Schema['procedures'] extends Record<string, any>
? {
/**
* Custom procedures.
*/
$procs: ProcedureHookGroup<Schema>;
}
: {};
: Record<never, never>;

// Note that we can potentially use TypeScript's mapped type to directly map from ORM contract, but that seems
// to significantly slow down tsc performance ...
Expand Down
4 changes: 2 additions & 2 deletions packages/clients/tanstack-query/src/svelte/index.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ type ProcedureHookGroup<Schema extends SchemaDef> = {
};
};

export type ProcedureHooks<Schema extends SchemaDef> = Schema extends { procedures: Record<string, any> }
export type ProcedureHooks<Schema extends SchemaDef> = Schema['procedures'] extends Record<string, any>
? {
/**
* Custom procedures.
*/
$procs: ProcedureHookGroup<Schema>;
}
: {};
: Record<never, never>;

// Note that we can potentially use TypeScript's mapped type to directly map from ORM contract, but that seems
// to significantly slow down tsc performance ...
Expand Down
4 changes: 2 additions & 2 deletions packages/clients/tanstack-query/src/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ type ProcedureHookGroup<Schema extends SchemaDef> = {
};
};

export type ProcedureHooks<Schema extends SchemaDef> = Schema extends { procedures: Record<string, any> }
export type ProcedureHooks<Schema extends SchemaDef> = Schema['procedures'] extends Record<string, any>
? {
/**
* Custom procedures.
*/
$procs: ProcedureHookGroup<Schema>;
}
: {};
: Record<never, never>;

// Note that we can potentially use TypeScript's mapped type to directly map from ORM contract, but that seems
// to significantly slow down tsc performance ...
Expand Down
Loading