Skip to content

Commit 9f963c6

Browse files
committed
chore: make typescript happy
1 parent 8faebff commit 9f963c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ declare const htmx: typeof htmxType;
6060

6161
if (api.swap) {
6262
// Pass contextElement to enable OOB swap processing (Issue #117)
63-
api.swap(target, response, swapSpec, { contextElement: elt });
63+
api.swap(target, response, swapSpec, {
64+
contextElement: elt,
65+
} as any);
6466
} else {
6567
api.selectAndSwap(
6668
swapSpec.swapStyle,

0 commit comments

Comments
 (0)