Skip to content

Commit 12cb26a

Browse files
authored
fix: change type of onDereference to non-required (#299)
1 parent e7b4888 commit 12cb26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ declare namespace $RefParser {
246246
* @argument {string} path The path being dereferenced (ie. the `$ref` string).
247247
* @argument {JSONSchemaObject} object The JSON-Schema that the `$ref` resolved to.
248248
*/
249-
onDereference(path: string, value: JSONSchemaObject): void;
249+
onDereference?(path: string, value: JSONSchemaObject): void;
250250
};
251251
}
252252

0 commit comments

Comments
 (0)