Skip to content

Commit 5443454

Browse files
committed
🐛 fixed typings for react query
1 parent 5851076 commit 5443454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/react-query/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const pluginReactQueryOps = ({
1414
queryName,
1515
operation,
1616
ts: `export function useTyped${capitalized}<O extends "${queryName}", TData extends ValueTypes[O], TResult = InputType<GraphQLTypes[O], TData>>(
17-
${operation}Key: string,
17+
${operation}Key: string | unknown[],
1818
${operation}: TData | ValueTypes[O],
1919
options?: Omit<Use${capitalized}Options<TResult>, '${operation}Key' | '${operation}Fn'>,
2020
zeusOptions?: OperationOptions,

0 commit comments

Comments
 (0)