We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 679f083 commit 0dc4e92Copy full SHA for 0dc4e92
1 file changed
types/lib/types.d.ts
@@ -33,6 +33,7 @@ export interface OpenGraphScraperOptions {
33
timeout?: number;
34
url?: string;
35
urlValidatorSettings?: ValidatorSettings;
36
+ jsonLDOptions?: JSONLDOptions;
37
}
38
/**
39
* Options for isURL method in Validator.js
@@ -60,6 +61,13 @@ export interface ValidatorSettings {
60
61
require_valid_protocol: boolean;
62
validate_length: boolean;
63
64
+/**
65
+ * Options for the JSON-LD parser
66
+ */
67
+export interface JSONLDOptions {
68
+ throwOnJSONParseError?: boolean;
69
+ logOnJSONParseError?: boolean;
70
+}
71
72
* The type for user defined custom meta tags you want to scrape.
73
*
0 commit comments