From 8b9f5397fee783bfa182a94c379afdc74b1acee3 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Thu, 17 Oct 2024 15:28:20 +0900 Subject: [PATCH] `TraverseCollectionOptions.suppressError` option --- src/vocab/lookup.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vocab/lookup.ts b/src/vocab/lookup.ts index 78197f74..c58bd3ce 100644 --- a/src/vocab/lookup.ts +++ b/src/vocab/lookup.ts @@ -131,6 +131,12 @@ export interface TraverseCollectionOptions { */ contextLoader?: DocumentLoader; + /** + * Whether to suppress errors when fetching pages. If `true`, + * errors will be logged but not thrown. Defaults to `false`. + */ + suppressError?: boolean; + /** * The interval to wait between fetching pages. Zero or negative * values will disable the interval. Disabled by default.