Skip to content

Commit

Permalink
fix(graphql): silent typescript error about csrfToken() method
Browse files Browse the repository at this point in the history
csrfToken() type is not available on @tensei/graphql package, so we need to suppress it with an
ignore for now
  • Loading branch information
Frantz Kati committed Dec 14, 2020
1 parent 9d5c5bd commit f885ef6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/graphql/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ input id_where_query {
JSON.stringify({
// @ts-ignore
'x-xsrf-token': request.csrfToken
// @ts-ignore
? request.csrfToken()
: undefined
})
Expand Down

0 comments on commit f885ef6

Please sign in to comment.