|
|
|
@ -35,14 +35,14 @@ export function createAttachmentKey() {
|
|
|
|
|
* @template {EventTarget} E
|
|
|
|
|
* @template {unknown} T
|
|
|
|
|
* @overload
|
|
|
|
|
* @param {Action<E, T> | function(E, T): void | ActionReturn<T>} action The action function
|
|
|
|
|
* @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function
|
|
|
|
|
* @param {() => T} fn A function that returns the argument for the action
|
|
|
|
|
* @returns {Attachment<E>}
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @template {EventTarget} E
|
|
|
|
|
* @overload
|
|
|
|
|
* @param {Action<E, void> | function(E): void | ActionReturn<void>} action The action function
|
|
|
|
|
* @param {Action<E, void> | ((element: E) => void | ActionReturn<void>)} action The action function
|
|
|
|
|
* @returns {Attachment<E>}
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
@ -54,7 +54,7 @@ export function createAttachmentKey() {
|
|
|
|
|
*
|
|
|
|
|
* @template {EventTarget} E
|
|
|
|
|
* @template {unknown} T
|
|
|
|
|
* @param {Action<E, T> | function(E, T): void | ActionReturn<T>} action The action function
|
|
|
|
|
* @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function
|
|
|
|
|
* @param {() => T} fn A function that returns the argument for the action
|
|
|
|
|
* @returns {Attachment<E>}
|
|
|
|
|
* @since 5.32
|
|
|
|
|