We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da909af commit 3e236c4Copy full SHA for 3e236c4
src/build/patches.ts
@@ -3,10 +3,6 @@ import { Enum } from "./types";
3
import { readdir, readFile } from "fs/promises";
4
import { merge } from "./helpers.js";
5
6
-interface EnumDescriptor {
7
- [x: string]: Enum;
8
-}
9
-
10
/**
11
* Converts patch files in KDL to match the [types](types.d.ts).
12
*/
@@ -18,7 +14,7 @@ export function parseKDL(kdlText: string) {
18
14
}
19
15
20
16
const nodes = output!;
21
- const enums: EnumDescriptor = {};
17
+ const enums: Record<string, Enum> = {};
22
23
for (const node of nodes) {
24
if (node.name === "enum") {
0 commit comments