-
Notifications
You must be signed in to change notification settings - Fork 108
-
Hi,
I have generated my code and I have types problems, if I add as any in index.ts it fix the problems.
const fetchOptions = options[1] || {} as any'
...
export const Gql = Chain(HOST, {
headers: {
'Content-Type': 'application/json',
...HEADERS,
},
} as any);
(note the as any added to both of the lines).
When I remove the as any there are the error:
ts version: 4.7.3
What am I missing, I dont think its related to my schema at all.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
install node-fetch I think if you are using node
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment