Skip to content

Commit

Permalink
Fix typings of generated variable function for component queries (#887)
Browse files Browse the repository at this point in the history
* Fix typings of generic props type parameter

* Fix return type of variable function for component queries

* changeset
  • Loading branch information
fehnomenal authored Feb 3, 2023
1 parent 47bffbc commit 9824f77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ten-plums-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini-svelte': patch
---

Fix typings of generated variable function for component queries
Original file line number Diff line number Diff line change
Expand Up @@ -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
`
}
}
Expand Down

0 comments on commit 9824f77

Please sign in to comment.