@native cloud pressed the π§βπ» Code button in #help to ask a question:
Code
import { EventEmitterModule } from '@nestjs/event-emitter';
@Module({
imports: [
EventEmitterModule.forRoot({ignoreErrors: false})
]
});
import { OnEvent } from '@nestjs/event-emitter';
OnEvent(event, { suppressErrors: false });
Question
Can anybody explain the discrepancy in options.ignoreErrors vs options.supressErrors?
https://github.com/nestjs/event-emitter/blob/master/lib/interfaces/on-event-options.interface.ts#L18
vs.
https://github.com/EventEmitter2/EventEmitter2/blob/master/eventemitter2.d.ts#L39
What have you already attempted?
We omit ignoreErrors as it is `false` by default and suppressErrors: false as it is `true` by default... π€·ββοΈ