Skip to content

searchWorks ​

Import from: @xbbg/xnews

searchWorks(source, query?): Promise<WorksResult>

Defined in: src/works.ts (declaration: works.d.ts:24)

Searches one catalog through the shared status taxonomy. Never throws: transport failures land in error with status: "error", caller configuration preconditions — an unset mirror base URL, an empty query — land in status: "disabled", and a page whose parse produced warnings but still yielded records is "partial".

Parameters ​

source ​

WorksSource

query? ​

WorksQuery

Returns ​

Promise<WorksResult>

Last updated:

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