fix enum types; remove accidental generated .js file
This commit is contained in:
parent
b7aa126e6a
commit
fe8e980d27
|
@ -11,18 +11,18 @@ type environment = ForTS_Distribution_Environment.environment //use
|
||||||
let defaultEnvironment: environment = DistributionOperation.defaultEnv
|
let defaultEnvironment: environment = DistributionOperation.defaultEnv
|
||||||
|
|
||||||
@module("./ForTS_Distribution_tag") @scope("distributionTag")
|
@module("./ForTS_Distribution_tag") @scope("distributionTag")
|
||||||
external dtPointSet_: int = "PointSet"
|
external dtPointSet_: string = "PointSet"
|
||||||
|
|
||||||
@module("./ForTS_Distribution_tag") @scope("distributionTag")
|
@module("./ForTS_Distribution_tag") @scope("distributionTag")
|
||||||
external dtSampleSet_: int = "SampleSet"
|
external dtSampleSet_: string = "SampleSet"
|
||||||
|
|
||||||
@module("./ForTS_Distribution_tag") @scope("distributionTag")
|
@module("./ForTS_Distribution_tag") @scope("distributionTag")
|
||||||
external dtSymbolic_: int = "Symbolic"
|
external dtSymbolic_: string = "Symbolic"
|
||||||
|
|
||||||
@genType.import("./ForTS_Distribution_tag")
|
@genType.import("./ForTS_Distribution_tag")
|
||||||
type distributionTag
|
type distributionTag
|
||||||
|
|
||||||
external castEnum: int => distributionTag = "%identity"
|
external castEnum: string => distributionTag = "%identity"
|
||||||
|
|
||||||
// type genericDist =
|
// type genericDist =
|
||||||
// | PointSet(PointSetTypes.pointSetDist)
|
// | PointSet(PointSetTypes.pointSetDist)
|
||||||
|
|
|
@ -4,18 +4,18 @@
|
||||||
@genType type mixedShape = PointSetTypes.mixedShape
|
@genType type mixedShape = PointSetTypes.mixedShape
|
||||||
|
|
||||||
@module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag")
|
@module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag")
|
||||||
external pstMixed_: int = "Mixed"
|
external pstMixed_: string = "Mixed"
|
||||||
|
|
||||||
@module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag")
|
@module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag")
|
||||||
external pstDiscrete_: int = "Discrete"
|
external pstDiscrete_: string = "Discrete"
|
||||||
|
|
||||||
@module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag")
|
@module("./ForTS_Distribution_PointSetDistribution_tag") @scope("pointSetDistributionTag")
|
||||||
external pstContinuous_: int = "Continuous"
|
external pstContinuous_: string = "Continuous"
|
||||||
|
|
||||||
@genType.import("./ForTS_Distribution_PointSetDistribution_tag")
|
@genType.import("./ForTS_Distribution_PointSetDistribution_tag")
|
||||||
type pointSetDistributionTag
|
type pointSetDistributionTag
|
||||||
|
|
||||||
external castEnum: int => pointSetDistributionTag = "%identity"
|
external castEnum: string => pointSetDistributionTag = "%identity"
|
||||||
|
|
||||||
@genType
|
@genType
|
||||||
let getTag = (variant: pointSetDistribution): pointSetDistributionTag =>
|
let getTag = (variant: pointSetDistribution): pointSetDistributionTag =>
|
||||||
|
|
|
@ -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 = {}))
|
|
||||||
);
|
|
Loading…
Reference in New Issue
Block a user