Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 88ae498

Browse files
fix(types): improve QueryKeyBuilder argument inference and registry typing
1 parent b1e35ab commit 88ae498

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-query-key-manager",
3-
"version": "0.0.1",
3+
"version": "0.0.11",
44
"description": "A lightweight TypeScript library for managing and organizing query keys for React Query projects, enabling consistent, type-safe key usage without extra dependencies.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

‎src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type QueryKeyPart = string | number | boolean | object;
22
export type QueryKey = QueryKeyPart[];
3-
export type QueryKeyBuilder<Args extends any[] = []> = (
3+
export type QueryKeyBuilder<Args extends unknown[] = []> = (
44
...args: Args
55
) => QueryKey;
66
export type QueryKeyRegistry = Record<string, QueryKeyBuilder<any>>;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /