Minor fix for EvModule support

This commit is contained in:
Ozzie Gooen 2022-06-09 06:44:03 -07:00
parent afffdd8559
commit e4eceb9cd3

View File

@ -188,6 +188,12 @@ function createTsExport(
case "EvTypeIdentifier":
return tag("typeIdentifier", x.value);
case "EvModule":
return tag("module", x.value);
let moduleResult: tagged<"module", { [key: string]: squiggleExpression }> = tag(
"module",
_.mapValues(x.value, (x: unknown) =>
convertRawToTypescript(x as rescriptExport, environment)
)
);
return moduleResult;
}
}