import { ActionMiddleware , InMemoryUser } from '@ebenos/framework' ; export const preMiddlewares = [ ( actionName , user , params , next ) : void => { console . log ( `User ${ user . firstName } triggered action: ${ actionName } with params ${ JSON . stringify ( params ) }` ) ; next ( ) ; } ] ;