import { Controller } from "stimulus" ; export function controllerMethod < C extends Controller > ( controller , methodName ) { const method = controller [ methodName ] ; if ( typeof method == 'function' ) { return method ; } else if ( method != undefined ) { return ( ) => method ; } else { return ( ) => void 0 ; } }