import { NextRpcConfig , WrapMethod } from '../../../../..' ; const wrapMethod = ( method , meta ) => { return async ( ... args ) => { console . log ( `calling "${ meta . name }" on "${ meta . pathname }" with ${ args }` ) ; const result = await method ( ... args ) ; console . log ( `result: ${ result }` ) ; return result ; } ; } ; export const config = { rpc : true , wrapMethod , } ;