The response to validate
Type predicate indicating whether data is a VWRAssetReferencesResponse
isVWRAssetReferencesResponse({ assetReferences: [{ url: "https://x/coa.pdf" }] }); // true
isVWRAssetReferencesResponse({ assetReferences: [{}] }); // false (missing url)
export function isVWRAssetReferencesResponse(data: unknown): data is VWRAssetReferencesResponse {
return v.safeParse(vwrAssetReferencesResponseSchema, data).success;
}
Type guard validating a VWR asset-references response. Requires an
assetReferencesarray whose entries each carry aurl(theassetTypeand language fields are tolerated).