Skip to content

filterEvents ​

Import from: @xbbg/xnews

filterEvents<Provider>(events, options?): readonly EventRecord<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? ​

EventFetchOptions

Returns ​

readonly EventRecord<Provider>[]

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.