function eventof(input) {
    //@ts-ignore
    switch (input.type) {
        case "button":
        case "submit":
        case "checkbox":
            return "click"
        case "file":
            return "change"
        default:
            return "input"
    }
}
/**
 * Copied from the observable stdlib source (https://github.com/observablehq/stdlib/blob/170f137ac266b397446320e959c36dd21888357b/src/generators/input.js) without modifications.
 * @param {Element} input
 * @returns {string}
 */
Copied from the observable stdlib source  without modifications.
@param {Element} input
@returns {string}
Copied from the observable stdlib source without modifications . @param { Element } input @returns { string }
function eventof(input) {
    switch (input.type) {
        case "button":
        case "submit":
        case "checkbox":
            return "click"
        case "file":
            return "change"
        default:
            return "input"
    }
}
function eventof ( input ) { switch ( input . type ) { case "button" : case "submit" : case "checkbox" : return "click" case "file" : return "change" default : return "input" } }
Copied from the observable stdlib source (https://github.com/observablehq/stdlib/blob/170f137ac266b397446320e959c36dd21888357b/src/generators/input.js) without modifications.
Copied from the observable stdlib source ( https : // github . com / observablehq / stdlib / blob / 170f137ac266b397446320e959c36dd21888357b / src / generators / input . js ) without modifications .
//@ts-ignore