EmitArgs
EmitArgs<
TPayload> =undefinedextendsTPayload? [data?:TPayload] : [data:TPayload]
Defined in: types.ts:365
The payload argument list for one emit() call. The payload is optional
when the declared type admits undefined (ping: undefined, or a union
with it) and required otherwise. On the wide map every payload is unknown,
which admits undefined, so emit(name) stays legal there.
Type Parameters
Section titled “Type Parameters”TPayload
Section titled “TPayload”TPayload