filterEvents
Import from: @xbbg/xnews
filterEvents<
Provider>(events,options?): readonlyEventRecord<Provider>[]
Defined in: src/events.ts (declaration: events.d.ts:64)
Applies the lane-wide minSeverity and countryCodes filters. Sources call this so every publisher honors both options identically, including publishers whose upstream API cannot filter server-side.
Type Parameters
Provider
Provider extends string
Parameters
events
readonly EventRecord<Provider>[]
options?
Returns
readonly EventRecord<Provider>[]
