Skip to content

Commit 3e236c4

Browse files
committed
chore: remove EnumDescriptor
1 parent da909af commit 3e236c4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/build/patches.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { Enum } from "./types";
33
import { readdir, readFile } from "fs/promises";
44
import { merge } from "./helpers.js";
55

6-
interface EnumDescriptor {
7-
[x: string]: Enum;
8-
}
9-
106
/**
117
* Converts patch files in KDL to match the [types](types.d.ts).
128
*/
@@ -18,7 +14,7 @@ export function parseKDL(kdlText: string) {
1814
}
1915

2016
const nodes = output!;
21-
const enums: EnumDescriptor = {};
17+
const enums: Record<string, Enum> = {};
2218

2319
for (const node of nodes) {
2420
if (node.name === "enum") {

0 commit comments

Comments
 (0)