Skip to content

Commit 0dc4e92

Browse files
committed
updating type to support jsonLDOptions
1 parent 679f083 commit 0dc4e92

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

types/lib/types.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface OpenGraphScraperOptions {
3333
timeout?: number;
3434
url?: string;
3535
urlValidatorSettings?: ValidatorSettings;
36+
jsonLDOptions?: JSONLDOptions;
3637
}
3738
/**
3839
* Options for isURL method in Validator.js
@@ -60,6 +61,13 @@ export interface ValidatorSettings {
6061
require_valid_protocol: boolean;
6162
validate_length: boolean;
6263
}
64+
/**
65+
* Options for the JSON-LD parser
66+
*/
67+
export interface JSONLDOptions {
68+
throwOnJSONParseError?: boolean;
69+
logOnJSONParseError?: boolean;
70+
}
6371
/**
6472
* The type for user defined custom meta tags you want to scrape.
6573
*

0 commit comments

Comments
 (0)