diff --git a/.changeset/ten-plums-fetch.md b/.changeset/ten-plums-fetch.md new file mode 100644 index 0000000000..18584bd46c --- /dev/null +++ b/.changeset/ten-plums-fetch.md @@ -0,0 +1,5 @@ +--- +'houdini-svelte': patch +--- + +Fix typings of generated variable function for component queries diff --git a/packages/houdini-svelte/src/plugin/codegen/components/index.ts b/packages/houdini-svelte/src/plugin/codegen/components/index.ts index 376e8ee541..2c344155b5 100644 --- a/packages/houdini-svelte/src/plugin/codegen/components/index.ts +++ b/packages/houdini-svelte/src/plugin/codegen/components/index.ts @@ -131,7 +131,7 @@ import type { ${query.name}$input } from '${path ` export type ${config.variableFunctionName( query.name - )} = <_Props = ${prop_type}>(args: { props: _Props }) => FragmentQueryVars$input + )} = <_Props extends ${prop_type}>(args: { props: _Props }) => ${query.name}$input ` } }