Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TS errors on generated code #350

avifatal started this conversation in General
Discussion options

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:

image

ts version: 4.7.3

What am I missing, I dont think its related to my schema at all.

Thanks

You must be logged in to vote

Replies: 1 comment

Comment options

install node-fetch I think if you are using node

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /