type UnknownRecord = Record < string , unknown > ; const pageView = ( path , params ? ) => { console . info ( '🥝Fruit Logger - PageView' , params ) ; } ; const event = ( name , params ? ) => { console . info ( '🥝Fruit Logger - Event' , name , params ) ; } ; const click = ( name , params ? ) => { console . info ( '🥝Fruit Logger - Click' , name , params ) ; } ; const set = ( ... args ) => { const params = args . pop ( ) ; const name = args . pop ( ) ; if ( name === undefined ) { console . info ( '🥝Fruit Logger - Set' , params ) ; } else { console . info ( '🥝Fruit Logger - Set' , name , params ) ; } } ; const setUserProperty = ( params ) => { set ( 'user_properties' , params ) ; } ; const exception = ( params ? ) => { console . info ( '🥝Fruit Logger - Exception' , params ) ; } ; export const fruitLogger = { pageView , event , click , set , setUserProperty , exception , } ;