Skip to content

Commit 5bb8f4c

Browse files
committed
Update annotation types
1 parent eba4c1d commit 5bb8f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

annotations/annotated-instance.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const setAnnotation: (keywordUri: string, schemaLocation: string, value: string) => void;
22
export const annotation: <A>(instance: JsonNode, keyword: string, dialectUri?: string) => A[];
3-
export const annotatedWith: (instance: JsonNode, keyword: string, dialectUri?: string) => JsonNode[];
3+
export const annotatedWith: <A extends JsonNode>(instance: A, keyword: string, dialectUri?: string) => A[];
44

55
export * from "../lib/instance.js";

0 commit comments

Comments
 (0)