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
query?
Returns
Promise<WorksResult>
