From faa03b9b1aaae660834231a753d165b0789249bf Mon Sep 17 00:00:00 2001 From: JonLuca DeCaro Date: Fri, 20 Jan 2023 18:32:27 -0500 Subject: [PATCH] fix: change type of onDereference to non-required --- lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 4b0badb8..a62a8fda 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -246,7 +246,7 @@ declare namespace $RefParser { * @argument {string} path The path being dereferenced (ie. the `$ref` string). * @argument {JSONSchemaObject} object The JSON-Schema that the `$ref` resolved to. */ - onDereference(path: string, value: JSONSchemaObject): void; + onDereference?(path: string, value: JSONSchemaObject): void; }; }