string enum for SquiggleValue tags

This commit is contained in:
Vyacheslav Matyukhin 2022-08-25 17:47:28 +04:00
parent 1dfc9fe820
commit 7dd9a5bb77
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
2 changed files with 52 additions and 52 deletions

View File

@ -12,61 +12,61 @@ type squiggleValue_Lambda = ForTS_SquiggleValue_Lambda.squiggleValue_Lambda //us
// Return values are kept as they are if they are JavaScript types. // Return values are kept as they are if they are JavaScript types.
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtArray_: int = "SvtArray" external svtArray_: string = "SvtArray"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtArrayString_: int = "SvtArrayString" external svtArrayString_: string = "SvtArrayString"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtBool_: int = "SvtBool" external svtBool_: string = "SvtBool"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtCall_: int = "SvtCall" external svtCall_: string = "SvtCall"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtDate_: int = "SvtDate" external svtDate_: string = "SvtDate"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtDeclaration_: int = "SvtDeclaration" external svtDeclaration_: string = "SvtDeclaration"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtDistribution_: int = "SvtDistribution" external svtDistribution_: string = "SvtDistribution"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtLambda_: int = "SvtLambda" external svtLambda_: string = "SvtLambda"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtModule_: int = "SvtModule" external svtModule_: string = "SvtModule"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtNumber_: int = "SvtNumber" external svtNumber_: string = "SvtNumber"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtRecord_: int = "SvtRecord" external svtRecord_: string = "SvtRecord"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtString_: int = "SvtString" external svtString_: string = "SvtString"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtSymbol_: int = "SvtSymbol" external svtSymbol_: string = "SvtSymbol"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtTimeDuration_: int = "SvtTimeDuration" external svtTimeDuration_: string = "SvtTimeDuration"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtType_: int = "SvtType" external svtType_: string = "SvtType"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtTypeIdentifier_: int = "SvtUndefined" external svtTypeIdentifier_: string = "SvtUndefined"
@module("ForTS_SquiggleValue_tag") @scope("squiggleValueTag") @module("./ForTS_SquiggleValue_tag") @scope("squiggleValueTag")
external svtVoid_: int = "SvtVoid" external svtVoid_: string = "SvtVoid"
@genType.import("./ForTS_SquiggleValue_tag") @genType.import("./ForTS_SquiggleValue_tag")
type squiggleValueTag type squiggleValueTag
external castEnum: int => squiggleValueTag = "%identity" external castEnum: string => squiggleValueTag = "%identity"
@genType @genType
let getTag = (variant: squiggleValue): squiggleValueTag => let getTag = (variant: squiggleValue): squiggleValueTag =>

View File

@ -1,19 +1,19 @@
export enum squiggleValueTag { export enum squiggleValueTag {
SvtArray, SvtArray = "Array",
SvtArrayString, SvtArrayString = "ArrayString",
SvtBool, SvtBool = "Bool",
SvtCall, SvtCall = "Call",
SvtDate, SvtDate = "Date",
SvtDeclaration, SvtDeclaration = "Declaration",
SvtDistribution, SvtDistribution = "Distribution",
SvtLambda, SvtLambda = "Lambda",
SvtModule, SvtModule = "Module",
SvtNumber, SvtNumber = "Number",
SvtRecord, SvtRecord = "Record",
SvtString, SvtString = "String",
SvtSymbol, SvtSymbol = "Symbol",
SvtTimeDuration, SvtTimeDuration = "TimeDuration",
SvtType, SvtType = "Type",
SvtTypeIdentifier, SvtTypeIdentifier = "TypeIdentifier",
SvtVoid, SvtVoid = "Void",
} }