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
|
||||
|
||||
@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)
|
||||
|
|
|
@ -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 =>
|
||||
|
|
|
@ -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