diff --git a/package.json b/package.json index 0308669..ddae4a3 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "react-dom": "^18.2.0", "tsup": "^8.0.2", "tsx": "^4.7.1", - "typescript": "^5.4.3", + "typescript": "^5.6.3", "vite": "^5.2.7", "vitest": "^1.4.0" } diff --git a/src/react/useQuery.ts b/src/react/useQuery.ts index 9bee3a5..4ec1c68 100644 --- a/src/react/useQuery.ts +++ b/src/react/useQuery.ts @@ -46,9 +46,9 @@ const usePreviousValue = >(value: T): T => { return previousRef.current; }; -export const useQuery = ( +export const useQuery = ( query: TypedDocumentNode, - variables: Variables, + variables: InitialVariables, { suspense = false, optimize = false, diff --git a/yarn.lock b/yarn.lock index 008e8e7..a8b82bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5411,10 +5411,10 @@ typed-array-length@^1.0.6: is-typed-array "^1.1.13" possible-typed-array-names "^1.0.0" -typescript@^5.4.3: - version "5.4.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.3.tgz#5c6fedd4c87bee01cd7a528a30145521f8e0feff" - integrity sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg== +typescript@^5.6.3: + version "5.6.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" + integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== ua-parser-js@^1.0.35: version "1.0.37"