mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-26 20:40:41 +00:00
Fix type for event parameter (#3317)
Fix type of event for HtmxExtension.onEvent Co-authored-by: scrhartley <scrhartley@github.com>
This commit is contained in:
parent
ff190eef26
commit
d2e39716fb
@ -5237,7 +5237,7 @@ var htmx = (function() {
|
||||
* @see https://github.com/bigskysoftware/htmx-extensions/blob/main/README.md
|
||||
* @typedef {Object} HtmxExtension
|
||||
* @property {(api: any) => void} init
|
||||
* @property {(name: string, event: Event|CustomEvent) => boolean} onEvent
|
||||
* @property {(name: string, event: CustomEvent) => boolean} onEvent
|
||||
* @property {(text: string, xhr: XMLHttpRequest, elt: Element) => string} transformResponse
|
||||
* @property {(swapStyle: HtmxSwapStyle) => boolean} isInlineSwap
|
||||
* @property {(swapStyle: HtmxSwapStyle, target: Node, fragment: Node, settleInfo: HtmxSettleInfo) => boolean|Node[]} handleSwap
|
||||
|
Loading…
x
Reference in New Issue
Block a user