Commit 1c430ae
authored
Fix missing TypeScript declarations in published package (#850)
* fix: add explicit RegExp type annotations to restore TypeScript declaration generation
UNICODE_PUNCT_R and UNICODE_WHITESPACE_R were exported vars without explicit
type annotations. @bunup/dts uses oxc-transform's isolatedDeclaration() to
generate .d.ts files, which requires all exported bindings to have explicit
types. Without them, TS9010 errors are emitted. In CI (isCI=true), these
errors are fatal and cause process.exit(1) before any .d.ts files are
written — which is why published packages v9.7.10 and v9.7.11 were missing
their type declarations entirely.
Closes #849
* chore: add changeset for type declarations fix1 parent c39fdc1 commit 1c430ae
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
| 467 | + | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
0 commit comments