Skip to content

Commit 16c5c79

Browse files
committed
fix(types): use generic realm type for eval options
1 parent 454bbaa commit 16c5c79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

types/index.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type JSONEvaluationRealm from './evaluate/realms/json.ts';
2-
31
export type JSONPointer = string;
42
export type URIFragmentJSONPointer = string;
53
export type StringifiedJSONPointer = string;
@@ -108,10 +106,10 @@ export function compile(referenceTokens: readonly UnescapedReferenceToken[]): JS
108106
export function evaluate<T = unknown>(value: unknown, jsonPointer: JSONPointer, options?: EvaluationOptions): T;
109107
export function composeRealms(...realms: EvaluationRealm[]): EvaluationRealm;
110108

111-
export interface EvaluationOptions<R extends EvaluationRealm = JSONEvaluationRealm> {
109+
export interface EvaluationOptions {
112110
strictArrays?: boolean;
113111
strictObjects?: boolean;
114-
realm?: R;
112+
realm?: EvaluationRealm;
115113
trace?: boolean | Partial<EvaluationTrace>;
116114
}
117115

0 commit comments

Comments
 (0)