Skip to content

Commit

Permalink
fix(core): Fix @ts-ignore directive on TS import in type declaratio…
Browse files Browse the repository at this point in the history
…n output (#3567)
  • Loading branch information
kitten authored Apr 18, 2024
1 parent 3f573fb commit 1805b92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lucky-timers-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@urql/core': patch
---

Fix `@ts-ignore` on TypeScript peer dependency import in typings not being applied due to a leading `!` character.
2 changes: 1 addition & 1 deletion scripts/rollup/cleanup-plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function cleanup() {
if (dtsFilter(chunk.fileName)) {
return input
.replace(emptyImportRe, '')
.replace(gqlImportRe, x => '/*!@ts-ignore*/\n' + x);
.replace(gqlImportRe, x => '/*@ts-ignore*/\n' + x);
}
},
};
Expand Down

0 comments on commit 1805b92

Please sign in to comment.