diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res index ad7675ce..c5590ba5 100644 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res +++ b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution.res @@ -11,18 +11,18 @@ type environment = ForTS_Distribution_Environment.environment //use let defaultEnvironment: environment = DistributionOperation.defaultEnv @module("./ForTS_Distribution_tag") @scope("distributionTag") -external dtPointSet_: int = "PointSet" +external dtPointSet_: string = "PointSet" @module("./ForTS_Distribution_tag") @scope("distributionTag") -external dtSampleSet_: int = "SampleSet" +external dtSampleSet_: string = "SampleSet" @module("./ForTS_Distribution_tag") @scope("distributionTag") -external dtSymbolic_: int = "Symbolic" +external dtSymbolic_: string = "Symbolic" @genType.import("./ForTS_Distribution_tag") type distributionTag -external castEnum: int => distributionTag = "%identity" +external castEnum: string => distributionTag = "%identity" // type genericDist = // | PointSet(PointSetTypes.pointSetDist) diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution.res b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution.res index df154efb..3b4193bc 100644 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution.res +++ b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution.res @@ -4,18 +4,18 @@ @genType type mixedShape = PointSetTypes.mixedShape @module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag") -external pstMixed_: int = "Mixed" +external pstMixed_: string = "Mixed" @module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag") -external pstDiscrete_: int = "Discrete" +external pstDiscrete_: string = "Discrete" @module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag") -external pstContinuous_: int = "Continuous" +external pstContinuous_: string = "Continuous" @genType.import("./ForTS_Distribution_PointSetDistribution_tag") type pointSetDistributionTag -external castEnum: int => pointSetDistributionTag = "%identity" +external castEnum: string => pointSetDistributionTag = "%identity" @genType let getTag = (variant: pointSetDistribution): pointSetDistributionTag => diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution_tag.js b/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution_tag.js deleted file mode 100644 index 106c13d2..00000000 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_Distribution/ForTS_Distribution_PointSetDistribution_tag.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -exports.__esModule = true; -exports.pointSetDistributionTag = void 0; -var pointSetDistributionTag; -(function (pointSetDistributionTag) { - pointSetDistributionTag[(pointSetDistributionTag["PstMixed"] = 0)] = - "PstMixed"; - pointSetDistributionTag[(pointSetDistributionTag["PstDiscrete"] = 1)] = - "PstDiscrete"; - pointSetDistributionTag[(pointSetDistributionTag["PstContinuous"] = 2)] = - "PstContinuous"; -})( - (pointSetDistributionTag = - exports.pointSetDistributionTag || (exports.pointSetDistributionTag = {})) -);