From 40458c2074df3ef05f50c48d1baa9030872b2e87 Mon Sep 17 00:00:00 2001 From: Nikita Liakhovka Date: Sun, 18 May 2025 14:30:35 +0900 Subject: [PATCH] Fix HygraphLoaderOptions to use Record for variables type --- src/HygraphLoader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HygraphLoader.ts b/src/HygraphLoader.ts index 07d3624..80a5b42 100644 --- a/src/HygraphLoader.ts +++ b/src/HygraphLoader.ts @@ -15,7 +15,7 @@ export interface HygraphLoaderOptions { /** The operation to fetch from the API */ operation: string | IOperation; /** The GraphQL variables to pass to the API */ - variables?: Array; + variables?: Record>; /** The rich text field to render */ richText?: string; }