import { Request } from '@prequest/node' ; export const defaultOutPutFileName = ( requestOption ) => { return requestOption . path ?. replace ( /.*\/(\w+)/ , ( _ , __ ) => __ ) || '' ; } ; export const defaultRootInterfaceName = ( requestOption ) => { return ( requestOption . path ?. replace ( /.*\/(\w+)/ , ( _ , __ ) => __ ) . replace ( /^[a-z]/ , a => a . toUpperCase ( ) ) || '' ) ; } ; export const defaultParseResponse = ( res ) => res . data ;