remove paremeter type for emit, instead use object array as argument