Skip to content

Commit f1b97fb

Browse files
committed
Fix type errors
1 parent 20d3a85 commit f1b97fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/experimental.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Browser, Document } from "@hyperjump/browser";
2+
import type { Json } from "@hyperjump/json-pointer";
23
import type { Validator, Output, OutputUnit, OutputFormat, SchemaObject } from "./index.js";
34
import type { JsonNode } from "./instance.js";
45

@@ -91,8 +92,8 @@ export type ValidationContext = {
9192
// Evaluation Plugins
9293
export type EvaluationPlugin<Context extends ValidationContext = ValidationContext> = {
9394
beforeSchema?(url: string, instance: JsonNode, context: Context): void;
94-
beforeKeyword?(keywordNode: Node<unknown>, instance: JsonNode, context: Context, schemaContext: Context, keyword: Keyword): void;
95-
afterKeyword?(keywordNode: Node<unknown>, instance: JsonNode, context: Context, valid: boolean, schemaContext: Context, keyword: Keyword): void;
95+
beforeKeyword?(keywordNode: Node<unknown>, instance: JsonNode, context: Context, schemaContext: Context, keyword: Keyword<unknown>): void;
96+
afterKeyword?(keywordNode: Node<unknown>, instance: JsonNode, context: Context, valid: boolean, schemaContext: Context, keyword: Keyword<unknown>): void;
9697
afterSchema?(url: string, instance: JsonNode, context: Context, valid: boolean): void;
9798
};
9899

0 commit comments

Comments
 (0)