Quick fixes for EvType typescripting
This commit is contained in:
parent
38cc93bdec
commit
d888f685d0
|
@ -172,6 +172,14 @@ function createTsExport(
|
||||||
return tag("lambdaDeclaration", x.value);
|
return tag("lambdaDeclaration", x.value);
|
||||||
case "EvTypeIdentifier":
|
case "EvTypeIdentifier":
|
||||||
return tag("typeIdentifier", x.value);
|
return tag("typeIdentifier", x.value);
|
||||||
|
case "EvType":
|
||||||
|
let typeResult: tagged<"type", { [key: string]: squiggleExpression }> = tag(
|
||||||
|
"type",
|
||||||
|
_.mapValues(x.value, (x: unknown) =>
|
||||||
|
convertRawToTypescript(x as rescriptExport, environment)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return typeResult
|
||||||
case "EvModule":
|
case "EvModule":
|
||||||
let moduleResult: tagged<
|
let moduleResult: tagged<
|
||||||
"module",
|
"module",
|
||||||
|
|
|
@ -129,6 +129,7 @@ export type squiggleExpression =
|
||||||
| tagged<"timeDuration", number>
|
| tagged<"timeDuration", number>
|
||||||
| tagged<"lambdaDeclaration", lambdaDeclaration>
|
| tagged<"lambdaDeclaration", lambdaDeclaration>
|
||||||
| tagged<"record", { [key: string]: squiggleExpression }>
|
| tagged<"record", { [key: string]: squiggleExpression }>
|
||||||
|
| tagged<"type", { [key: string]: squiggleExpression }>
|
||||||
| tagged<"typeIdentifier", string>
|
| tagged<"typeIdentifier", string>
|
||||||
| tagged<"module", { [key: string]: squiggleExpression }>;
|
| tagged<"module", { [key: string]: squiggleExpression }>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user