Skip to content

Commit 37084b3

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

File tree

10 files changed

+9
-9
lines changed

10 files changed

+9
-9
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
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.js";
22
import { mapToArray, arrayToMap } from "./helpers.js";
33

44
export function collectLegacyNamespaceTypes(
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.js";
33
import { addToArrayMap } from "../utils/map.js";
44

55
async function getInterfaceToElementMap(): Promise<

src/build/widlprocess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as webidl2 from "webidl2";
2-
import * as Browser from "./types.js";
2+
import type * as Browser from "./types.js";
33
import { getEmptyWebIDL } from "./helpers.js";
44

55
export function convert(text: string, commentMap: Record<string, string>) {

0 commit comments

Comments
 (0)