Skip to content

Commit 04ac8af

Browse files
committed
fix(types): fix missing types and import extensions
1 parent 174da87 commit 04ac8af

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

types/evaluate/realms/apidom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { EvaluationRealm } from '../../index';
1+
import type { EvaluationRealm } from '../../index.ts';
22

33
declare class ApiDOMEvaluationRealm extends EvaluationRealm {
44
public readonly name: 'apidom';

types/evaluate/realms/immutable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { EvaluationRealm } from '../../index';
1+
import type { EvaluationRealm } from '../../index.ts';
22

33
declare class ImmutableEvaluationRealm extends EvaluationRealm {
44
public readonly name: 'immutable';

types/evaluate/realms/json.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
import type { EvaluationRealm, JSONArray, JSONObject } from '../../index';
1+
import type { EvaluationRealm } from '../../index.ts';
2+
3+
export type JSONPrimitive = string | number | boolean | null;
4+
5+
export interface JSONObject {
6+
[key: string]: JSONValue;
7+
}
8+
9+
export interface JSONArray extends Array<JSONValue> { }
10+
11+
export type JSONValue = JSONPrimitive | JSONObject | JSONArray;
212

313
declare class JSONEvaluationRealm extends EvaluationRealm {
414
public readonly name: 'json';

types/evaluate/realms/map-set.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { EvaluationRealm } from '../../index';
1+
import type { EvaluationRealm } from '../../index.ts';
22

33
declare class MapSetEvaluationRealm extends EvaluationRealm {
44
public readonly name: 'map-set';

types/evaluate/realms/minim.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { EvaluationRealm } from '../../index';
1+
import type { EvaluationRealm } from '../../index.ts';
22

33
declare class MinimEvaluationRealm extends EvaluationRealm {
44
public readonly name: 'minim';

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type JSONEvaluationRealm from './evaluate/realms/json';
1+
import type JSONEvaluationRealm from './evaluate/realms/json.ts';
22

33
export type JSONPointer = string;
44
export type URIFragmentJSONPointer = string;

0 commit comments

Comments
 (0)