diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result.res b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result.res index 6c770dc6..99c4bceb 100644 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result.res +++ b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result.res @@ -18,10 +18,10 @@ let getValue = (r: result<'a, 'e>): option<'a> => | Error(_) => None } -@module("ForTS_Result_tag") @scope("resultTag") +@module("./ForTS_Result_tag") @scope("resultTag") external rtOk_: int = "RtOk" -@module("ForTS_Result_tag") @scope("resultTag") +@module("./ForTS_Result_tag") @scope("resultTag") external rtError_: int = "RtError" @genType.import("./ForTS_Result_tag") diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result_tag.ts b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result_tag.ts index da7cd79d..2091415b 100644 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result_tag.ts +++ b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Result_tag.ts @@ -1,4 +1,4 @@ export enum resultTag { - Ok, - Error, + RtOk, + RtError, }