Skip to content

Commit ea5a0d3

Browse files
tkirda-bisonclaude
andcommitted
fix: expose jquery type augmentation from package types entry (#896)
Declaration emit dropped the value-only import of ./jquery-plugin, so dist/index.d.ts never reached the `declare global` JQuery augmentation and consumers got TS2339 on `devbridgeAutocomplete`. A side-effect import keeps it in the emitted .d.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 728e8eb commit ea5a0d3

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎dist/index.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
import "./jquery-plugin";
12
export { Autocomplete } from "./Autocomplete";
23
export type * from "./types";

‎src/index.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import jQuery from "jquery";
22
import { installAutocomplete } from "./jquery-plugin";
3+
// Kept as a separate side-effect import so it survives into dist/index.d.ts:
4+
// declaration emit drops the value-only import above, which would leave the
5+
// `declare global` JQuery augmentation (#896) unreachable for consumers.
6+
import "./jquery-plugin";
37

48
installAutocomplete(jQuery);
59

0 commit comments

Comments
 (0)