import type * as d from '../../../declarations' ; import { getStaticValue } from '../transform-utils' ; import ts from 'typescript' ; export const parseStaticListeners = ( staticMembers ) : d . ComponentCompilerListener [ ] => { const parsedListeners = getStaticValue ( staticMembers , 'listeners' ) ; if ( ! parsedListeners || parsedListeners . length === 0 ) { return [ ] ; } return parsedListeners . map ( ( parsedListener ) => { return { name : parsedListener . name , method : parsedListener . method , capture : ! ! parsedListener . capture , passive : ! ! parsedListener . passive , target : parsedListener . target , } ; } ) ; } ;