Mirror: The spec-compliant minimum of client-side GraphQL.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix the `@ts-ignore` directive on TS import in type declaration output (#27)

* Fix the directive syntax for ignoring errors due to unavailable peer dependencies

* Add a changeset

* Update .changeset/serious-hotels-shake.md

---------

Co-authored-by: Phil Pluckthun <phil@kitten.sh>

authored by

Ivan Ukhov
Phil Pluckthun
and committed by
GitHub
0a4fef71 14b1a0c1

+6 -1
+5
.changeset/serious-hotels-shake.md
··· 1 + --- 2 + "@0no-co/graphql.web": patch 3 + --- 4 + 5 + Fix `@ts-ignore` on TypeScript peer dependency import in typings not being applied due to a leading `!` character.
+1 -1
scripts/rollup.config.mjs
··· 233 233 renderChunk(code, chunk) { 234 234 if (chunk.fileName.endsWith('d.ts')) { 235 235 const gqlImportRe = /(import\s+(?:[*\s{}\w\d]+)\s*from\s*'graphql';?)/g; 236 - code = code.replace(gqlImportRe, x => '/*!@ts-ignore*/\n' + x); 236 + code = code.replace(gqlImportRe, x => '/*@ts-ignore*/\n' + x); 237 237 238 238 code = prettier.format(code, { 239 239 filepath: chunk.fileName,