You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the .tsx instead of .ts, the generation of typescript definitions goes wrong. Typescript thinks this is a JSX.Element because it's written like shown below and in the screenshot
Reproduce steps
create-react-app
with templategraphql
.graphql-let.yml
and addschema.graphqls
.graphql-let.yml
to changetypescript-react-apollo
totypescript-react-query
graphql-let
Automated steps
Expected
node_modules/@types/graphql-let/__generated__/src/App-GetRates-Partial.d.ts:21
to contain
useQuery
-hook typesActual
export declare const useGetRatesQuery: JSX.Element;
Problem
Using the
.tsx
instead of.ts
, the generation of typescript definitions goes wrong. Typescript thinks this is aJSX.Element
because it's written like shown below and in the screenshotSolution
.tsx
but.ts
when generics are present.The text was updated successfully, but these errors were encountered: