import type * as d from '../../../declarations' ; import { getStaticValue , isInternal } from '../transform-utils' ; import ts from 'typescript' ; export const parseStaticMethods = ( staticMembers ) : d . ComponentCompilerMethod [ ] => { const parsedMethods = getStaticValue ( staticMembers , 'methods' ) ; if ( ! parsedMethods ) { return [ ] ; } const methodNames = Object . keys ( parsedMethods ) ; if ( methodNames . length === 0 ) { return [ ] ; } return methodNames . map ( ( methodName ) => { return { name : methodName , docs : parsedMethods [ methodName ] . docs , complexType : parsedMethods [ methodName ] . complexType , internal : isInternal ( parsedMethods [ methodName ] . docs ) , } ; } ) ; } ;