Skip to content

Commit ad78f9a

Browse files
committed
Use and import as types.d.ts
1 parent f569940 commit ad78f9a

File tree

11 files changed

+10
-10
lines changed

11 files changed

+10
-10
lines changed

src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./build/types.js";
1+
import type * as Browser from "./build/types.d.ts";
22
import { promises as fs } from "fs";
33
import { merge, resolveExposure, arrayToMap } from "./build/helpers.js";
44
import { type CompilerBehavior, emitWebIdl } from "./build/emitter.js";

src/build/bcd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types.js";
1+
import type * as Browser from "./types.d.ts";
22
import {
33
CompatStatement,
44
SimpleSupportStatement,

src/build/bcd/mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
SimpleSupportStatement,
66
} from "bcd-idl-mapper";
77
import api from "bcd-idl-mapper";
8-
import * as Browser from "../types.js";
8+
import type * as Browser from "../types.d.ts";
99
import { filterMapRecord, isEmptyRecord } from "../utils/record.js";
1010
import { mapDefined } from "../helpers.js";
1111
import { hasStableImplementation } from "./stable.js";

src/build/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types.js";
1+
import type * as Browser from "./types.d.ts";
22
import {
33
mapToArray,
44
distinct,

src/build/expose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types.js";
1+
import type * as Browser from "./types.d.ts";
22
import {
33
getEmptyWebIDL,
44
deepFilter,

src/build/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types.js";
1+
import type * as Browser from "./types.d.ts";
22

33
// Extended types used but not defined in the spec
44
export const arrayBufferViewTypes = new Set([

src/build/legacy-namespace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types.js";
1+
import type * as Browser from "./types.d.ts";
22
import { mapToArray, arrayToMap } from "./helpers.js";
33

44
export function collectLegacyNamespaceTypes(

src/build/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { parse, type Value, type Node } from "kdljs";
2-
import type { Enum, Event, Property, Interface, WebIdl } from "./types.js";
2+
import type { Enum, Event, Property, Interface, WebIdl } from "./types.d.ts";
33
import { readdir, readFile } from "fs/promises";
44
import { merge } from "./helpers.js";
55

File renamed without changes.

src/build/webref/elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { listAll, Element as WebrefElement } from "@webref/elements";
2-
import { Interface, WebIdl } from "../types.js";
2+
import type { Interface, WebIdl } from "../types.d.ts";
33
import { addToArrayMap } from "../utils/map.js";
44

55
async function getInterfaceToElementMap(): Promise<

0 commit comments

Comments
 (0)