@glutinum/cli 1.0.0-beta.10 → 1.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/Glutinum.Converter/Abbreviations.js +7 -7
  2. package/dist/Glutinum.Converter/DelegateExtensions.js +7 -7
  3. package/dist/Glutinum.Converter/FreeTypeParameters.js +4 -4
  4. package/dist/Glutinum.Converter/FsharpAST.js +3 -3
  5. package/dist/Glutinum.Converter/Generate.js +19 -6
  6. package/dist/Glutinum.Converter/GlueAST.js +8 -8
  7. package/dist/Glutinum.Converter/Hosting.js +11 -11
  8. package/dist/Glutinum.Converter/Merge.js +103 -27
  9. package/dist/Glutinum.Converter/Packages.js +11 -11
  10. package/dist/Glutinum.Converter/Printer.js +23 -11
  11. package/dist/Glutinum.Converter/Read.js +9 -9
  12. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +4 -4
  13. package/dist/Glutinum.Converter/Reader/ConditionalTypeNode.js +3 -3
  14. package/dist/Glutinum.Converter/Reader/Declaration.js +7 -7
  15. package/dist/Glutinum.Converter/Reader/Deferred.js +8 -8
  16. package/dist/Glutinum.Converter/Reader/Documentation.js +6 -6
  17. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +2 -2
  18. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +6 -6
  19. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +4 -4
  20. package/dist/Glutinum.Converter/Reader/ExpressionWithTypeArguments.js +5 -5
  21. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +4 -4
  22. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +1 -1
  23. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +5 -5
  24. package/dist/Glutinum.Converter/Reader/IntersectionTypeNode.js +5 -5
  25. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +4 -4
  26. package/dist/Glutinum.Converter/Reader/MemberTypes.js +5 -5
  27. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +4 -4
  28. package/dist/Glutinum.Converter/Reader/Node.js +4 -4
  29. package/dist/Glutinum.Converter/Reader/Parameters.js +3 -3
  30. package/dist/Glutinum.Converter/Reader/Report.js +4 -4
  31. package/dist/Glutinum.Converter/Reader/TypeNode.js +9 -9
  32. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +6 -6
  33. package/dist/Glutinum.Converter/Reader/TypeParameters.js +2 -2
  34. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +10 -10
  35. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +4 -4
  36. package/dist/Glutinum.Converter/Reader/Types.js +10 -10
  37. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +4 -4
  38. package/dist/Glutinum.Converter/Reader/UtilityType.js +8 -8
  39. package/dist/Glutinum.Converter/Reader/Utils.js +14 -14
  40. package/dist/Glutinum.Converter/Reader/VariableStatement.js +5 -5
  41. package/dist/Glutinum.Converter/Transform.js +262 -42
  42. package/dist/Glutinum.Converter/Transformer/AnyFunctionOverloads.js +5 -5
  43. package/dist/Glutinum.Converter/Transformer/CallableProperties.js +3 -3
  44. package/dist/Glutinum.Converter/Transformer/Comment.js +7 -7
  45. package/dist/Glutinum.Converter/Transformer/Conditionals.js +10 -10
  46. package/dist/Glutinum.Converter/Transformer/Context.js +11 -11
  47. package/dist/Glutinum.Converter/Transformer/Enum.js +5 -5
  48. package/dist/Glutinum.Converter/Transformer/Exports.js +11 -11
  49. package/dist/Glutinum.Converter/Transformer/Heritage.js +8 -8
  50. package/dist/Glutinum.Converter/Transformer/KeyOfMaps.js +9 -9
  51. package/dist/Glutinum.Converter/Transformer/ParamObjectCandidate.js +7 -7
  52. package/dist/Glutinum.Converter/Transformer/TypeParameter.js +5 -5
  53. package/dist/Glutinum.Converter/Transformer/TypeParameters.js +6 -6
  54. package/dist/Glutinum.Converter/Transformer/UnionOverloads.js +7 -25
  55. package/dist/Glutinum.Converter/Transformer/Utils.js +6 -6
  56. package/dist/Glutinum.Converter/Utils/Keywords.js +3 -3
  57. package/dist/Glutinum.Converter/Utils/List.js +2 -2
  58. package/dist/Glutinum.Converter/Utils/Naming.js +6 -6
  59. package/dist/Glutinum.Converter/Utils/String.js +3 -3
  60. package/dist/Program.js +7 -7
  61. package/dist/fable_modules/Fable.Promise.3.2.1/AsyncIterable.fs.js +2 -2
  62. package/dist/fable_modules/Fable.Promise.3.2.1/Promise.fs.js +4 -4
  63. package/dist/fable_modules/Fable.Promise.3.2.1/PromiseImpl.fs.js +2 -2
  64. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Array.fs.js +5 -5
  65. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Async.fs.js +4 -4
  66. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncOptionCE.fs.js +3 -3
  67. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultCE.fs.js +1 -1
  68. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOption.fs.js +3 -3
  69. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncResultOptionCE.fs.js +1 -1
  70. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/AsyncValidationCE.fs.js +1 -1
  71. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/List.fs.js +4 -4
  72. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/OptionCE.fs.js +1 -1
  73. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResult.fs.js +3 -3
  74. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncResultCE.fs.js +1 -1
  75. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ParallelAsyncValidationCE.fs.js +1 -1
  76. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Result.fs.js +1 -1
  77. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ResultCE.fs.js +2 -2
  78. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ResultOption.fs.js +2 -2
  79. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ResultOptionCE.fs.js +1 -1
  80. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/Seq.fs.js +7 -7
  81. package/dist/fable_modules/FsToolkit.ErrorHandling.5.2.0/ValidationCE.fs.js +1 -1
  82. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Async.js +21 -7
  83. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/AsyncBuilder.js +51 -6
  84. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/CHANGELOG.md +23 -1
  85. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/CollectionUtil.js +10 -16
  86. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MailboxProcessor.js +19 -3
  87. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MutableMap.js +5 -1
  88. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MutableSet.js +5 -1
  89. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Util.js +15 -3
  90. package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/package.json +1 -1
  91. package/package.json +1 -1
  92. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Array.js +0 -0
  93. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/BigInt.js +0 -0
  94. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/BitConverter.js +0 -0
  95. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Boolean.js +0 -0
  96. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Char.js +0 -0
  97. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Choice.js +0 -0
  98. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/ConditionalWeakTable.js +0 -0
  99. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Date.js +0 -0
  100. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateOffset.js +0 -0
  101. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateOnly.js +0 -0
  102. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateOnlyTemporal.js +0 -0
  103. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateTimeFormat.js +0 -0
  104. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateTimeOffsetTemporal.js +0 -0
  105. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/DateTimeTemporal.js +0 -0
  106. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Decimal.js +0 -0
  107. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Directory.js +0 -0
  108. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Double.js +0 -0
  109. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Encoding.js +0 -0
  110. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Environment.js +0 -0
  111. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Event.js +0 -0
  112. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/FSharp.Collections.js +0 -0
  113. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/FSharp.Core.CompilerServices.js +0 -0
  114. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/FSharp.Core.js +0 -0
  115. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/File.js +0 -0
  116. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Global.js +0 -0
  117. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Guid.js +0 -0
  118. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Int32.js +0 -0
  119. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/List.js +0 -0
  120. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Long.js +0 -0
  121. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Map.js +0 -0
  122. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/MapUtil.js +0 -0
  123. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Native.js +0 -0
  124. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Numeric.js +0 -0
  125. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Observable.js +0 -0
  126. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Option.js +0 -0
  127. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Path.js +0 -0
  128. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/README.md +0 -0
  129. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Random.js +0 -0
  130. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Range.js +0 -0
  131. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Reflection.js +0 -0
  132. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/RegExp.js +0 -0
  133. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Result.js +0 -0
  134. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Seq.js +0 -0
  135. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Seq2.js +0 -0
  136. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Set.js +0 -0
  137. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/String.js +0 -0
  138. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/System.Collections.Generic.js +0 -0
  139. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/System.Text.js +0 -0
  140. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/System.js +0 -0
  141. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Task.js +0 -0
  142. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TaskBuilder.js +0 -0
  143. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeOnly.js +0 -0
  144. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeOnlyTemporal.js +0 -0
  145. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeSpan.js +0 -0
  146. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/TimeSpanTemporal.js +0 -0
  147. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Timer.js +0 -0
  148. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Types.js +0 -0
  149. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Unicode.13.0.0.js +0 -0
  150. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/Uri.js +0 -0
  151. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/big.d.ts +0 -0
  152. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/lib/big.js +0 -0
  153. /package/dist/fable_modules/{fable-library-js.5.17.2 → fable-library-js.5.21.0}/quotation.js +0 -0
@@ -1,12 +1,12 @@
1
1
 
2
- import { join } from "../fable_modules/fable-library-js.5.17.2/String.js";
3
- import { filter, iterate, map as map_1, empty as empty_1, isEmpty, tryFind, truncate, length, singleton, append } from "../fable_modules/fable-library-js.5.17.2/List.js";
4
- import { defaultOf, equals, disposeSafe, getEnumerator, int32ToString } from "../fable_modules/fable-library-js.5.17.2/Util.js";
5
- import { tryGetValue, getItemFromDict, addToSet } from "../fable_modules/fable-library-js.5.17.2/MapUtil.js";
6
- import { empty, singleton as singleton_1, append as append_1, map, delay, toList } from "../fable_modules/fable-library-js.5.17.2/Seq.js";
7
- import { rangeDouble } from "../fable_modules/fable-library-js.5.17.2/Range.js";
2
+ import { join } from "../fable_modules/fable-library-js.5.21.0/String.js";
3
+ import { filter, iterate, map as map_1, empty as empty_1, isEmpty, tryFind, truncate, length, singleton, append } from "../fable_modules/fable-library-js.5.21.0/List.js";
4
+ import { defaultOf, equals, disposeSafe, getEnumerator, int32ToString } from "../fable_modules/fable-library-js.5.21.0/Util.js";
5
+ import { tryGetValue, getItemFromDict, addToSet } from "../fable_modules/fable-library-js.5.21.0/MapUtil.js";
6
+ import { empty, singleton as singleton_1, append as append_1, map, delay, toList } from "../fable_modules/fable-library-js.5.21.0/Seq.js";
7
+ import { rangeDouble } from "../fable_modules/fable-library-js.5.21.0/Range.js";
8
8
  import { FSharpModule, FSharpTypeAlias, FSharpTypeModule_mapChildren, FSharpMapped, FSharpTypeParameter, FSharpTypeReference, FSharpType } from "./FsharpAST.js";
9
- import { FSharpRef } from "../fable_modules/fable-library-js.5.17.2/Types.js";
9
+ import { FSharpRef } from "../fable_modules/fable-library-js.5.21.0/Types.js";
10
10
 
11
11
  function key(path, name, arity) {
12
12
  return (join(".", append(path, singleton(name))) + "`") + int32ToString(arity);
@@ -1,12 +1,12 @@
1
1
 
2
- import { comparePrimitives, defaultOf, safeHash, equals, disposeSafe, getEnumerator } from "../fable_modules/fable-library-js.5.17.2/Util.js";
3
- import { split, join } from "../fable_modules/fable-library-js.5.17.2/String.js";
4
- import { choose, take, ofArray, map, isEmpty, contains, forAll, empty, cons, collect, singleton, append } from "../fable_modules/fable-library-js.5.17.2/List.js";
2
+ import { comparePrimitives, defaultOf, safeHash, equals, disposeSafe, getEnumerator } from "../fable_modules/fable-library-js.5.21.0/Util.js";
3
+ import { split, join } from "../fable_modules/fable-library-js.5.21.0/String.js";
4
+ import { choose, take, ofArray, map, isEmpty, contains, forAll, empty, cons, collect, singleton, append } from "../fable_modules/fable-library-js.5.21.0/List.js";
5
5
  import { FSharpModule, FSharpTypeExtension, FSharpDelegateExtension, FSharpParameter, FSharpTypeModule_mapChildren, FSharpMapped, FSharpTypeParameter, FSharpType, FSharpTypeReference, FSharpAttribute, FSharpTypeModule_children } from "./FsharpAST.js";
6
- import { item } from "../fable_modules/fable-library-js.5.17.2/Array.js";
7
- import { tryGetValue } from "../fable_modules/fable-library-js.5.17.2/MapUtil.js";
8
- import { FSharpRef } from "../fable_modules/fable-library-js.5.17.2/Types.js";
9
- import { FSharpSet__Contains, ofList } from "../fable_modules/fable-library-js.5.17.2/Set.js";
6
+ import { item } from "../fable_modules/fable-library-js.5.21.0/Array.js";
7
+ import { tryGetValue } from "../fable_modules/fable-library-js.5.21.0/MapUtil.js";
8
+ import { FSharpRef } from "../fable_modules/fable-library-js.5.21.0/Types.js";
9
+ import { FSharpSet__Contains, ofList } from "../fable_modules/fable-library-js.5.21.0/Set.js";
10
10
 
11
11
  function collectDelegates(path, types, into) {
12
12
  const enumerator = getEnumerator(types);
@@ -1,9 +1,9 @@
1
1
 
2
- import { empty, union, FSharpSet__Contains, ofList } from "../fable_modules/fable-library-js.5.17.2/Set.js";
3
- import { isEmpty, map, choose } from "../fable_modules/fable-library-js.5.17.2/List.js";
4
- import { comparePrimitives } from "../fable_modules/fable-library-js.5.17.2/Util.js";
2
+ import { empty, union, FSharpSet__Contains, ofList } from "../fable_modules/fable-library-js.5.21.0/Set.js";
3
+ import { isEmpty, map, choose } from "../fable_modules/fable-library-js.5.21.0/List.js";
4
+ import { comparePrimitives } from "../fable_modules/fable-library-js.5.21.0/Util.js";
5
5
  import { FSharpModule, FSharpTypeAlias, FSharpDelegate, FSharpInterface, FSharpStaticMemberInfo, FSharpMember, FSharpMemberInfo, FSharpFunctionType, FSharpParameter, FSharpUnion, FSharpUnionCase, FSharpJSApi, FSharpThisType, FSharpTypeReference, FSharpMapped, FSharpTypeParameter, FSharpType } from "./FsharpAST.js";
6
- import { substring } from "../fable_modules/fable-library-js.5.17.2/String.js";
6
+ import { substring } from "../fable_modules/fable-library-js.5.21.0/String.js";
7
7
 
8
8
  function declaredNames(typeParameters) {
9
9
  return ofList(choose((_arg) => {
@@ -1,8 +1,8 @@
1
1
 
2
- import { Union, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
3
- import { enum_type, option_type, tuple_type, bool_type, float64_type, int32_type, union_type, list_type, record_type, string_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
2
+ import { Union, Record } from "../fable_modules/fable-library-js.5.21.0/Types.js";
3
+ import { enum_type, option_type, tuple_type, bool_type, float64_type, int32_type, union_type, list_type, record_type, string_type } from "../fable_modules/fable-library-js.5.21.0/Reflection.js";
4
4
  import { GlueMember_$reflection } from "./GlueAST.js";
5
- import { empty, cons, choose, singleton, map, forAll } from "../fable_modules/fable-library-js.5.17.2/List.js";
5
+ import { empty, cons, choose, singleton, map, forAll } from "../fable_modules/fable-library-js.5.21.0/List.js";
6
6
 
7
7
  export class FSharpCommentParam extends Record {
8
8
  constructor(Name, Content) {
@@ -1,19 +1,20 @@
1
1
 
2
2
  import { createNodeHost, Bootstrap_createProgramForCLI } from "./Hosting.js";
3
3
  import { readFileSync, existsSync } from "fs";
4
- import { comparePrimitives, disposeSafe, getEnumerator, Exception } from "../fable_modules/fable-library-js.5.17.2/Util.js";
5
- import { concat } from "../fable_modules/fable-library-js.5.17.2/String.js";
4
+ import { comparePrimitives, disposeSafe, getEnumerator, Exception } from "../fable_modules/fable-library-js.5.21.0/Util.js";
5
+ import { concat } from "../fable_modules/fable-library-js.5.21.0/String.js";
6
6
  import { printFileWith, Printer_$ctor } from "./Printer.js";
7
7
  import { readSourceFile } from "./Read.js";
8
8
  import { error as error_1, warn } from "./Log.js";
9
9
  import { TransformOptions, applyWithOptions } from "./Transform.js";
10
10
  import { ImportSource } from "./Transformer/Context.js";
11
- import { defaultArg } from "../fable_modules/fable-library-js.5.17.2/Option.js";
12
- import { empty } from "../fable_modules/fable-library-js.5.17.2/Map.js";
13
- import { empty as empty_1 } from "../fable_modules/fable-library-js.5.17.2/List.js";
14
- import { toString } from "../fable_modules/fable-library-js.5.17.2/Types.js";
11
+ import { defaultArg } from "../fable_modules/fable-library-js.5.21.0/Option.js";
12
+ import { empty } from "../fable_modules/fable-library-js.5.21.0/Map.js";
13
+ import { ofArray, empty as empty_1 } from "../fable_modules/fable-library-js.5.21.0/List.js";
14
+ import { toString } from "../fable_modules/fable-library-js.5.21.0/Types.js";
15
15
  import { defaultMaxOverloads } from "./Transformer/UnionOverloads.js";
16
16
  import { defaultOptions, generateWith } from "./Packages.js";
17
+ import { Operators_IsNull } from "../fable_modules/fable-library-js.5.21.0/FSharp.Core.js";
17
18
 
18
19
  export function createProgramForCLI(fileName, source) {
19
20
  return Bootstrap_createProgramForCLI(fileName, source);
@@ -119,3 +120,15 @@ export function generatePackages(inputs) {
119
120
  return generatePackagesFromDisk(defaultOptions, inputs);
120
121
  }
121
122
 
123
+ /**
124
+ * The entry of the JavaScript tests, an array stands for the list and `null` for the Node host
125
+ */
126
+ export function generatePackagesOfArray(host, inputs) {
127
+ if (Operators_IsNull(host)) {
128
+ return generatePackages(ofArray(inputs));
129
+ }
130
+ else {
131
+ return generatePackagesWith(host, ofArray(inputs));
132
+ }
133
+ }
134
+
@@ -1,12 +1,12 @@
1
1
 
2
- import { toString, Union, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
3
- import { class_type, float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
4
- import { tryItem, mapIndexed, append, singleton, map, collect, empty } from "../fable_modules/fable-library-js.5.17.2/List.js";
5
- import { comparePrimitives, stringHash, int32ToString } from "../fable_modules/fable-library-js.5.17.2/Util.js";
6
- import { join, concat } from "../fable_modules/fable-library-js.5.17.2/String.js";
7
- import { map as map_1, ofList, tryFind } from "../fable_modules/fable-library-js.5.17.2/Map.js";
8
- import { List_distinctBy } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
9
- import { orElse, defaultArg } from "../fable_modules/fable-library-js.5.17.2/Option.js";
2
+ import { toString, Union, Record } from "../fable_modules/fable-library-js.5.21.0/Types.js";
3
+ import { class_type, float64_type, int32_type, bool_type, union_type, list_type, record_type, option_type, string_type } from "../fable_modules/fable-library-js.5.21.0/Reflection.js";
4
+ import { tryItem, mapIndexed, append, singleton, map, collect, empty } from "../fable_modules/fable-library-js.5.21.0/List.js";
5
+ import { comparePrimitives, stringHash, int32ToString } from "../fable_modules/fable-library-js.5.21.0/Util.js";
6
+ import { join, concat } from "../fable_modules/fable-library-js.5.21.0/String.js";
7
+ import { map as map_1, ofList, tryFind } from "../fable_modules/fable-library-js.5.21.0/Map.js";
8
+ import { List_distinctBy } from "../fable_modules/fable-library-js.5.21.0/Seq2.js";
9
+ import { orElse, defaultArg } from "../fable_modules/fable-library-js.5.21.0/Option.js";
10
10
 
11
11
  export class GlueCommentParam extends Record {
12
12
  constructor(Name, Content) {
@@ -1,20 +1,20 @@
1
1
 
2
- import { concat, replace as replace_1, substring, join, split as split_1 } from "../fable_modules/fable-library-js.5.17.2/String.js";
3
- import { contains, map as map_2, addRangeInPlace, tryPick, choose, map2, tryFind, item } from "../fable_modules/fable-library-js.5.17.2/Array.js";
4
- import { collect, singleton, ofArray as ofArray_1, filter, tryFind as tryFind_1, exists as exists_1, delay, toList, map, toArray } from "../fable_modules/fable-library-js.5.17.2/Seq.js";
2
+ import { concat, replace as replace_1, substring, join, split as split_1 } from "../fable_modules/fable-library-js.5.21.0/String.js";
3
+ import { contains, map as map_2, addRangeInPlace, tryPick, choose, map2, tryFind, item } from "../fable_modules/fable-library-js.5.21.0/Array.js";
4
+ import { collect, singleton, ofArray as ofArray_1, filter, tryFind as tryFind_1, exists as exists_1, delay, toList, map, toArray } from "../fable_modules/fable-library-js.5.21.0/Seq.js";
5
5
  import { ts, InMemoryFileSystemHost, createProjectSync } from "@ts-morph/bootstrap";
6
6
  import * as path_1 from "path";
7
7
  import * as fs from "fs";
8
- import { toNullable, defaultArg, value as value_7, some } from "../fable_modules/fable-library-js.5.17.2/Option.js";
9
- import { replace, split as split_2, match, isMatch } from "../fable_modules/fable-library-js.5.17.2/RegExp.js";
10
- import { stringHash, defaultOf, Exception, disposeSafe, getEnumerator } from "../fable_modules/fable-library-js.5.17.2/Util.js";
11
- import { head, isEmpty, tryPick as tryPick_1, map as map_1, filter as filter_1, ofArray, exists } from "../fable_modules/fable-library-js.5.17.2/List.js";
12
- import { tryParse } from "../fable_modules/fable-library-js.5.17.2/Int32.js";
13
- import { FSharpRef } from "../fable_modules/fable-library-js.5.17.2/Types.js";
8
+ import { toNullable, defaultArg, value as value_7, some } from "../fable_modules/fable-library-js.5.21.0/Option.js";
9
+ import { replace, split as split_2, match, isMatch } from "../fable_modules/fable-library-js.5.21.0/RegExp.js";
10
+ import { stringHash, defaultOf, Exception, disposeSafe, getEnumerator } from "../fable_modules/fable-library-js.5.21.0/Util.js";
11
+ import { head, isEmpty, tryPick as tryPick_1, map as map_1, filter as filter_1, ofArray, exists } from "../fable_modules/fable-library-js.5.21.0/List.js";
12
+ import { tryParse } from "../fable_modules/fable-library-js.5.21.0/Int32.js";
13
+ import { FSharpRef } from "../fable_modules/fable-library-js.5.21.0/Types.js";
14
14
  import { PromiseBuilder__For_1565554B, PromiseBuilder__While_2044D34, PromiseBuilder__Delay_62FBFDE1, PromiseBuilder__Run_212F1D4B } from "../fable_modules/Fable.Promise.3.2.1/Promise.fs.js";
15
15
  import { promise } from "../fable_modules/Fable.Promise.3.2.1/PromiseImpl.fs.js";
16
- import { addToSet, tryGetValue, getItemFromDict } from "../fable_modules/fable-library-js.5.17.2/MapUtil.js";
17
- import { rangeDouble } from "../fable_modules/fable-library-js.5.17.2/Range.js";
16
+ import { addToSet, tryGetValue, getItemFromDict } from "../fable_modules/fable-library-js.5.21.0/MapUtil.js";
17
+ import { rangeDouble } from "../fable_modules/fable-library-js.5.21.0/Range.js";
18
18
 
19
19
  const declarationFile = /\.d\.[cm]?ts$/gu;
20
20
 
@@ -1,18 +1,18 @@
1
1
 
2
- import { FSharpRef, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
3
- import { record_type, tuple_type, list_type, class_type, string_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
2
+ import { FSharpRef, Record } from "../fable_modules/fable-library-js.5.21.0/Types.js";
3
+ import { record_type, tuple_type, list_type, class_type, string_type } from "../fable_modules/fable-library-js.5.21.0/Reflection.js";
4
4
  import { FSharpClass, FSharpModule, FSharpInterface, FSharpStaticMemberInfo, FSharpMember, FSharpMemberInfo, FSharpTypeModule_children, FSharpFunctionType, FSharpParameter, FSharpTypeModule_mapChildren, FSharpTypeReference, FSharpType, FSharpType_$reflection } from "./FsharpAST.js";
5
- import { ofList, FSharpMap__TryFind, tryFind, ofSeq, empty } from "../fable_modules/fable-library-js.5.17.2/Map.js";
6
- import { Exception, safeHash, equals, compareArrays, arrayHash, equalArrays, defaultOf, int32ToString, disposeSafe, getEnumerator, comparePrimitives } from "../fable_modules/fable-library-js.5.17.2/Util.js";
7
- import { mapIndexed, tryFindIndex, ofSeq as ofSeq_2, maxBy, skip, take, forAll2, ofArray, indexed, sortBy, exists, forAll, filter, collect, head, tail, zip, empty as empty_1, length, map, choose, singleton, append, isEmpty as isEmpty_1 } from "../fable_modules/fable-library-js.5.17.2/List.js";
8
- import { concat, join } from "../fable_modules/fable-library-js.5.17.2/String.js";
9
- import { map as map_1 } from "../fable_modules/fable-library-js.5.17.2/Seq.js";
10
- import { FSharpSet__get_IsEmpty, ofSeq as ofSeq_1, empty as empty_2, FSharpSet__Contains } from "../fable_modules/fable-library-js.5.17.2/Set.js";
11
- import { addToDict, getItemFromDict, addToSet, tryGetValue } from "../fable_modules/fable-library-js.5.17.2/MapUtil.js";
12
- import { List_distinctBy, List_distinct, List_groupBy } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
13
- import { FSharpChoice$3 } from "../fable_modules/fable-library-js.5.17.2/Choice.js";
14
- import { contains, setItem, item } from "../fable_modules/fable-library-js.5.17.2/Array.js";
15
- import { HashSet } from "../fable_modules/fable-library-js.5.17.2/MutableSet.js";
5
+ import { ofList, FSharpMap__TryFind, tryFind, ofSeq, empty } from "../fable_modules/fable-library-js.5.21.0/Map.js";
6
+ import { Exception, safeHash, equals, compare, compareArrays, arrayHash, equalArrays, defaultOf, int32ToString, disposeSafe, getEnumerator, comparePrimitives } from "../fable_modules/fable-library-js.5.21.0/Util.js";
7
+ import { mapIndexed, tryFindIndex, ofSeq as ofSeq_2, maxBy, skip, take, forAll2, ofArray, indexed, sortBy, exists, forAll, filter, collect, head, tail, zip, empty as empty_1, length, map, choose, singleton, append, isEmpty as isEmpty_1 } from "../fable_modules/fable-library-js.5.21.0/List.js";
8
+ import { concat, join } from "../fable_modules/fable-library-js.5.21.0/String.js";
9
+ import { map as map_1 } from "../fable_modules/fable-library-js.5.21.0/Seq.js";
10
+ import { isSubset, singleton as singleton_1, FSharpSet__get_IsEmpty, ofSeq as ofSeq_1, empty as empty_2, FSharpSet__Contains } from "../fable_modules/fable-library-js.5.21.0/Set.js";
11
+ import { addToDict, getItemFromDict, addToSet, tryGetValue } from "../fable_modules/fable-library-js.5.21.0/MapUtil.js";
12
+ import { List_distinctBy, List_distinct, List_groupBy } from "../fable_modules/fable-library-js.5.21.0/Seq2.js";
13
+ import { FSharpChoice$3 } from "../fable_modules/fable-library-js.5.21.0/Choice.js";
14
+ import { contains, setItem, item } from "../fable_modules/fable-library-js.5.21.0/Array.js";
15
+ import { HashSet } from "../fable_modules/fable-library-js.5.21.0/MutableSet.js";
16
16
 
17
17
  /**
18
18
  * The type aliases of the output, two references are the same type when they alias the same one
@@ -489,14 +489,56 @@ function withoutSubsumedOverloads(aliases, members) {
489
489
  }
490
490
  }
491
491
  };
492
+ const caseTypes = (typ) => {
493
+ const typ_2 = (typ.tag === 3) ? typ.fields[0] : typ;
494
+ let matchResult, unionInfo_1, typ_4;
495
+ if (typ_2.tag === 1) {
496
+ if (forAll((_arg) => {
497
+ if (_arg.tag === 1) {
498
+ return true;
499
+ }
500
+ else {
501
+ return false;
502
+ }
503
+ }, typ_2.fields[0].Cases)) {
504
+ matchResult = 0;
505
+ unionInfo_1 = typ_2.fields[0];
506
+ }
507
+ else {
508
+ matchResult = 1;
509
+ typ_4 = typ_2;
510
+ }
511
+ }
512
+ else {
513
+ matchResult = 1;
514
+ typ_4 = typ_2;
515
+ }
516
+ switch (matchResult) {
517
+ case 0:
518
+ return ofSeq_1(choose((_arg_1) => {
519
+ if (_arg_1.tag === 1) {
520
+ return _arg_1.fields[0];
521
+ }
522
+ else {
523
+ return undefined;
524
+ }
525
+ }, unionInfo_1.Cases), {
526
+ Compare: (x, y) => (compare(x, y) | 0),
527
+ });
528
+ default:
529
+ return singleton_1(typ_4, {
530
+ Compare: (x_1, y_1) => (compare(x_1, y_1) | 0),
531
+ });
532
+ }
533
+ };
492
534
  return filter((candidate) => {
493
- const matchValue_3 = filter((other) => {
535
+ const matchValue_6 = filter((other) => {
494
536
  const matchValue = signatureOf(other);
495
537
  const matchValue_1 = signatureOf(candidate);
496
- let matchResult, longKey, longParameters, longType, longTypeParameters, shortKey, shortParameters, shortType, shortTypeParameters;
538
+ let matchResult_1, longKey, longParameters, longType, longTypeParameters, shortKey, shortParameters, shortType, shortTypeParameters;
497
539
  if (matchValue != null) {
498
540
  if (matchValue_1 != null) {
499
- matchResult = 0;
541
+ matchResult_1 = 0;
500
542
  longKey = matchValue[0];
501
543
  longParameters = matchValue[2];
502
544
  longType = matchValue[3];
@@ -507,13 +549,13 @@ function withoutSubsumedOverloads(aliases, members) {
507
549
  shortTypeParameters = matchValue_1[1];
508
550
  }
509
551
  else {
510
- matchResult = 1;
552
+ matchResult_1 = 1;
511
553
  }
512
554
  }
513
555
  else {
514
- matchResult = 1;
556
+ matchResult_1 = 1;
515
557
  }
516
- switch (matchResult) {
558
+ switch (matchResult_1) {
517
559
  case 0:
518
560
  if ((((equalArrays(longKey, shortKey) && equals(longTypeParameters, shortTypeParameters)) && equals(longType, shortType)) && (length(longParameters) > length(shortParameters))) && forAll2((tupledArg, tupledArg_1) => (equals(tupledArg[0], tupledArg_1[0]) && (!tupledArg_1[1] ? true : tupledArg[1])), take(length(shortParameters), longParameters), shortParameters)) {
519
561
  return forAll((tuple) => tuple[1], skip(length(shortParameters), longParameters));
@@ -525,23 +567,57 @@ function withoutSubsumedOverloads(aliases, members) {
525
567
  return false;
526
568
  }
527
569
  }, members);
528
- let matchResult_1;
529
- if (!isEmpty_1(matchValue_3)) {
530
- if (isEmpty_1(tail(matchValue_3))) {
531
- matchResult_1 = 0;
570
+ let matchResult_2;
571
+ if (!isEmpty_1(matchValue_6)) {
572
+ if (isEmpty_1(tail(matchValue_6))) {
573
+ matchResult_2 = 0;
532
574
  }
533
575
  else {
534
- matchResult_1 = 1;
576
+ matchResult_2 = 1;
535
577
  }
536
578
  }
537
579
  else {
538
- matchResult_1 = 1;
580
+ matchResult_2 = 1;
539
581
  }
540
- switch (matchResult_1) {
582
+ switch (matchResult_2) {
541
583
  case 0:
542
584
  return false;
543
585
  default:
544
- return true;
586
+ return !exists((other_1) => {
587
+ const matchValue_3 = signatureOf(other_1);
588
+ const matchValue_4 = signatureOf(candidate);
589
+ let matchResult_3, narrowKey, narrowParameters, narrowType, narrowTypeParameters, wideKey, wideParameters, wideType, wideTypeParameters;
590
+ if (matchValue_3 != null) {
591
+ if (matchValue_4 != null) {
592
+ matchResult_3 = 0;
593
+ narrowKey = matchValue_4[0];
594
+ narrowParameters = matchValue_4[2];
595
+ narrowType = matchValue_4[3];
596
+ narrowTypeParameters = matchValue_4[1];
597
+ wideKey = matchValue_3[0];
598
+ wideParameters = matchValue_3[2];
599
+ wideType = matchValue_3[3];
600
+ wideTypeParameters = matchValue_3[1];
601
+ }
602
+ else {
603
+ matchResult_3 = 1;
604
+ }
605
+ }
606
+ else {
607
+ matchResult_3 = 1;
608
+ }
609
+ switch (matchResult_3) {
610
+ case 0:
611
+ if ((((equalArrays(wideKey, narrowKey) && equals(wideTypeParameters, narrowTypeParameters)) && equals(wideType, narrowType)) && (length(wideParameters) === length(narrowParameters))) && !equals(wideParameters, narrowParameters)) {
612
+ return forAll2((tupledArg_2, tupledArg_3) => (isSubset(caseTypes(tupledArg_3[0]), caseTypes(tupledArg_2[0])) && (!tupledArg_3[1] ? true : tupledArg_2[1])), wideParameters, narrowParameters);
613
+ }
614
+ else {
615
+ return false;
616
+ }
617
+ default:
618
+ return false;
619
+ }
620
+ }, members);
545
621
  }
546
622
  }, members);
547
623
  }
@@ -1,22 +1,22 @@
1
1
 
2
- import { toString, Record } from "../fable_modules/fable-library-js.5.17.2/Types.js";
2
+ import { toString, Record } from "../fable_modules/fable-library-js.5.21.0/Types.js";
3
3
  import { GlueModuleDeclaration, GlueType, GlueFileModule, GlueType_$reflection } from "./GlueAST.js";
4
- import { int32_type, tuple_type, option_type, bool_type, record_type, string_type, list_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
4
+ import { int32_type, tuple_type, option_type, bool_type, record_type, string_type, list_type } from "../fable_modules/fable-library-js.5.21.0/Reflection.js";
5
5
  import { FSharpType_$reflection } from "./FsharpAST.js";
6
6
  import { Bootstrap_reachableFiles, Bootstrap_createProgramFromFiles, Resolve_findNodeModules, Resolve_findPackageDir, Resolve_resolveInput, Resolve_listInstalledPackages, Resolve_describePackage, Npm_installPackage, createInMemoryHost as createInMemoryHost_1 } from "./Hosting.js";
7
- import { FSharpSet__get_IsEmpty, filter as filter_2, map as map_3, union, difference, FSharpSet__Contains, empty as empty_1, ofSeq } from "../fable_modules/fable-library-js.5.17.2/Set.js";
8
- import { stringHash, Exception, defaultOf, equals, compareArrays, comparePrimitives } from "../fable_modules/fable-library-js.5.17.2/Util.js";
9
- import { replace, concat, split, substring, join } from "../fable_modules/fable-library-js.5.17.2/String.js";
10
- import { map } from "../fable_modules/fable-library-js.5.17.2/Array.js";
7
+ import { FSharpSet__get_IsEmpty, filter as filter_2, map as map_3, union, difference, FSharpSet__Contains, empty as empty_1, ofSeq } from "../fable_modules/fable-library-js.5.21.0/Set.js";
8
+ import { stringHash, Exception, defaultOf, equals, compareArrays, comparePrimitives } from "../fable_modules/fable-library-js.5.21.0/Util.js";
9
+ import { replace, concat, split, substring, join } from "../fable_modules/fable-library-js.5.21.0/String.js";
10
+ import { map } from "../fable_modules/fable-library-js.5.21.0/Array.js";
11
11
  import { normalizePath } from "./Utils/String.js";
12
- import { contains, sortBy, tryFind as tryFind_1, collect, toArray, singleton, isEmpty, choose, empty as empty_2, filter as filter_1, sort, append, exists as exists_1, cons, fold, ofArray, map as map_1 } from "../fable_modules/fable-library-js.5.17.2/List.js";
13
- import { add, ofSeq as ofSeq_1, toList, FSharpMap__TryFind, FSharpMap__ContainsKey, FSharpMap__Add, containsKey, empty } from "../fable_modules/fable-library-js.5.17.2/Map.js";
12
+ import { contains, sortBy, tryFind as tryFind_1, collect, toArray, singleton, isEmpty, choose, empty as empty_2, filter as filter_1, sort, append, exists as exists_1, cons, fold, ofArray, map as map_1 } from "../fable_modules/fable-library-js.5.21.0/List.js";
13
+ import { add, ofSeq as ofSeq_1, toList, FSharpMap__TryFind, FSharpMap__ContainsKey, FSharpMap__Add, containsKey, empty } from "../fable_modules/fable-library-js.5.21.0/Map.js";
14
14
  import { PackageContext__TryFindPackage_Z721C83C5, PackageContext, ExternalPackage, PackageInfo } from "./Reader/Types.js";
15
- import { choose as choose_1, singleton as singleton_1, collect as collect_1, empty as empty_3, append as append_1, delay, sort as sort_1, toList as toList_1, exists, filter, tryPick, map as map_2, tryFind, fold as fold_1 } from "../fable_modules/fable-library-js.5.17.2/Seq.js";
16
- import { toArray as toArray_1, defaultArg } from "../fable_modules/fable-library-js.5.17.2/Option.js";
15
+ import { choose as choose_1, singleton as singleton_1, collect as collect_1, empty as empty_3, append as append_1, delay, sort as sort_1, toList as toList_1, exists, filter, tryPick, map as map_2, tryFind, fold as fold_1 } from "../fable_modules/fable-library-js.5.21.0/Seq.js";
16
+ import { toArray as toArray_1, defaultArg } from "../fable_modules/fable-library-js.5.21.0/Option.js";
17
17
  import { ambientModuleSpecifier, promotedAmbientModule, ambientModuleNames, $007CHasSymbolFlags$007C_$007C, resolveAlias } from "./Reader/Utils.js";
18
18
  import { defaultMaxOverloads } from "./Transformer/UnionOverloads.js";
19
- import { List_distinctBy, List_distinct } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
19
+ import { List_distinctBy, List_distinct } from "../fable_modules/fable-library-js.5.21.0/Seq2.js";
20
20
  import { readPackages } from "./Read.js";
21
21
  import { TransformOptions, applyWithOptions } from "./Transform.js";
22
22
  import { ImportSource } from "./Transformer/Context.js";
@@ -1,19 +1,19 @@
1
1
 
2
- import { toString } from "../fable_modules/fable-library-js.5.17.2/Types.js";
3
- import { StringBuilder__AppendLine, StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "../fable_modules/fable-library-js.5.17.2/System.Text.js";
4
- import { class_type } from "../fable_modules/fable-library-js.5.17.2/Reflection.js";
5
- import { max } from "../fable_modules/fable-library-js.5.17.2/Double.js";
6
- import { trimStart, interpolate, substring, join, replace, concat, isNullOrWhiteSpace, replicate } from "../fable_modules/fable-library-js.5.17.2/String.js";
2
+ import { toString } from "../fable_modules/fable-library-js.5.21.0/Types.js";
3
+ import { StringBuilder__AppendLine, StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "../fable_modules/fable-library-js.5.21.0/System.Text.js";
4
+ import { class_type } from "../fable_modules/fable-library-js.5.21.0/Reflection.js";
5
+ import { max } from "../fable_modules/fable-library-js.5.21.0/Double.js";
6
+ import { trimStart, interpolate, substring, join, replace, concat, isNullOrWhiteSpace, replicate } from "../fable_modules/fable-library-js.5.21.0/String.js";
7
7
  import { splitLines, replace as replace_1, removeSingleQuote, removeDoubleQuote, capitalizeFirstLetter } from "./Utils/String.js";
8
- import { isDigit2 } from "../fable_modules/fable-library-js.5.17.2/Char.js";
9
- import { cons, mapIndexed, empty, forAll, ofArray, concat as concat_1, partition, length, singleton, append, choose, filter, iterateIndexed, iterate, isEmpty, map, exists } from "../fable_modules/fable-library-js.5.17.2/List.js";
10
- import { stringHash, disposeSafe, getEnumerator, int32ToString, Exception } from "../fable_modules/fable-library-js.5.17.2/Util.js";
8
+ import { isDigit2 } from "../fable_modules/fable-library-js.5.21.0/Char.js";
9
+ import { cons, mapIndexed, empty, forAll, ofArray, concat as concat_1, partition, length, singleton, append, choose, filter, iterateIndexed, iterate, isEmpty, map, exists } from "../fable_modules/fable-library-js.5.21.0/List.js";
10
+ import { stringHash, disposeSafe, getEnumerator, int32ToString, Exception } from "../fable_modules/fable-library-js.5.21.0/Util.js";
11
11
  import { sanitizeTypeParameterName } from "./Utils/Naming.js";
12
- import { escape, create, isMatch, replace as replace_2 } from "../fable_modules/fable-library-js.5.17.2/RegExp.js";
12
+ import { escape, create, isMatch, replace as replace_2 } from "../fable_modules/fable-library-js.5.21.0/RegExp.js";
13
13
  import { removeConsecutiveEmptyLines, trimEmptyLines } from "./Utils/List.js";
14
14
  import { FSharpInterface, FSharpAttribute } from "./FsharpAST.js";
15
- import { singleton as singleton_1, append as append_1, delay, toList } from "../fable_modules/fable-library-js.5.17.2/Seq.js";
16
- import { List_distinctBy } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
15
+ import { singleton as singleton_1, append as append_1, delay, toList } from "../fable_modules/fable-library-js.5.21.0/Seq.js";
16
+ import { List_distinctBy } from "../fable_modules/fable-library-js.5.21.0/Seq2.js";
17
17
 
18
18
  export class Printer {
19
19
  constructor() {
@@ -1011,6 +1011,18 @@ function printUnion(printer, unionInfo) {
1011
1011
  Equals: (x, y) => (x === y),
1012
1012
  GetHashCode: (x) => (stringHash(x) | 0),
1013
1013
  }));
1014
+ iterate((_arg_2) => {
1015
+ if (_arg_2.tag === 2) {
1016
+ const caseName = _arg_2.fields[0];
1017
+ Printer__get_NewLine(printer);
1018
+ Printer__Write_Z721C83C5(printer, concat("/// Unchecked, the value as <c>", caseName, "</c> whatever case it holds"));
1019
+ Printer__get_NewLine(printer);
1020
+ Printer__Write_Z721C83C5(printer, "[<Emit(\"$0\")>]");
1021
+ Printer__get_NewLine(printer);
1022
+ Printer__Write_Z721C83C5(printer, `member _.As${caseName}: ${printType(_arg_2.fields[1])} = nativeOnly`);
1023
+ Printer__get_NewLine(printer);
1024
+ }
1025
+ }, unionInfo.Cases);
1014
1026
  }
1015
1027
  Printer__get_Unindent(printer);
1016
1028
  }
@@ -1,20 +1,20 @@
1
1
 
2
2
  import { ts } from "@ts-morph/bootstrap";
3
3
  import { ambientModuleSpecifier, ambientModuleNames as ambientModuleNames_1, isMergedInterfaceDeclaration, promotedAmbientModule } from "./Reader/Utils.js";
4
- import { FSharpSet__Contains, ofSeq } from "../fable_modules/fable-library-js.5.17.2/Set.js";
5
- import { exists, sortBy, reverse, concat, partition, ofSeq as ofSeq_1, fold, append, head as head_1, tail, isEmpty, filter, map, cons, foldBack, choose, singleton, ofArray, empty, collect } from "../fable_modules/fable-library-js.5.17.2/List.js";
6
- import { safeHash, stringHash, equals, comparePrimitives, compareArrays } from "../fable_modules/fable-library-js.5.17.2/Util.js";
7
- import { ofSeq as ofSeq_2, toSeq, FSharpMap__Add, fold as fold_1, empty as empty_1, add, tryFind } from "../fable_modules/fable-library-js.5.17.2/Map.js";
4
+ import { FSharpSet__Contains, ofSeq } from "../fable_modules/fable-library-js.5.21.0/Set.js";
5
+ import { exists, sortBy, reverse, concat, partition, ofSeq as ofSeq_1, fold, append, head as head_1, tail, isEmpty, filter, map, cons, foldBack, choose, singleton, ofArray, empty, collect } from "../fable_modules/fable-library-js.5.21.0/List.js";
6
+ import { safeHash, stringHash, equals, comparePrimitives, compareArrays } from "../fable_modules/fable-library-js.5.21.0/Util.js";
7
+ import { ofSeq as ofSeq_2, toSeq, FSharpMap__Add, fold as fold_1, empty as empty_1, add, tryFind } from "../fable_modules/fable-library-js.5.21.0/Map.js";
8
8
  import { GlueClassDeclaration, GlueModuleDeclaration, GlueType, GlueFileModule } from "./GlueAST.js";
9
- import { split, substring } from "../fable_modules/fable-library-js.5.17.2/String.js";
10
- import { List_groupBy } from "../fable_modules/fable-library-js.5.17.2/Seq2.js";
11
- import { addRangeInPlace, item } from "../fable_modules/fable-library-js.5.17.2/Array.js";
9
+ import { split, substring } from "../fable_modules/fable-library-js.5.21.0/String.js";
10
+ import { List_groupBy } from "../fable_modules/fable-library-js.5.21.0/Seq2.js";
11
+ import { addRangeInPlace, item } from "../fable_modules/fable-library-js.5.21.0/Array.js";
12
12
  import { TypeScriptReader_$ctor_26550FA4 } from "./Reader/TypeScriptReader.js";
13
- import { unwrap, value as value_1 } from "../fable_modules/fable-library-js.5.17.2/Option.js";
13
+ import { unwrap, value as value_1 } from "../fable_modules/fable-library-js.5.21.0/Option.js";
14
14
  import { removeSurroundingQuotes } from "./Utils/Naming.js";
15
15
  import { PackageContext__TryFindPackage_Z721C83C5, PackageContext__IsImportable_Z384F8060, PackageContext__IsHoisted_32BC514A, PackageContext__SymbolSpecifiers_Z721C83C5, PackageContext__ImportSpecifier_Z721C83C5, PackageContext__FileModuleName_Z11793CAF, PackageContext__AmbientSpecifier_Z721C83C5, PackageContext__NestedAmbientModuleSegments_32BC514A } from "./Reader/Types.js";
16
16
  import { normalizePath } from "./Utils/String.js";
17
- import { FSharpChoice$2 } from "../fable_modules/fable-library-js.5.17.2/Choice.js";
17
+ import { FSharpChoice$2 } from "../fable_modules/fable-library-js.5.21.0/Choice.js";
18
18
 
19
19
  function isScript(sourceFile) {
20
20
  if (!(ts.isExternalModule(sourceFile))) {
@@ -1,10 +1,10 @@
1
1
 
2
- import { filter, map, choose, partition } from "../../fable_modules/fable-library-js.5.17.2/List.js";
3
- import { toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
2
+ import { filter, map, choose, partition } from "../../fable_modules/fable-library-js.5.21.0/List.js";
3
+ import { toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
4
4
  import { GlueType, GlueClassDeclaration, GlueConstructor } from "../GlueAST.js";
5
5
  import { isExportAssignmentTarget, isExportedDeclaration, readHeritageClauses, getFullNameOrEmpty, isDefaultInExportList, ModifierUtil_HasModifier_742AC9D } from "./Utils.js";
6
- import { singleton } from "../../fable_modules/fable-library-js.5.17.2/Set.js";
7
- import { comparePrimitives } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
6
+ import { singleton } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
7
+ import { comparePrimitives } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
8
8
 
9
9
  export function readClassDeclaration(reader, classDeclaration) {
10
10
  const name = classDeclaration.name;
@@ -1,9 +1,9 @@
1
1
 
2
2
  import { readTypeUsingFlags, inferTypeNodes, inferredConstraint, tryResolveDeferred, isAnyTypeParameter, isDeferredConditional } from "./Deferred.js";
3
3
  import { GlueLiteral, GlueConditionalType, GlueTypeParameter, GlueTypeUnion, GlueType, GluePrimitive } from "../GlueAST.js";
4
- import { stringHash, equals } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
5
- import { map, ofArray } from "../../fable_modules/fable-library-js.5.17.2/List.js";
6
- import { List_distinctBy } from "../../fable_modules/fable-library-js.5.17.2/Seq2.js";
4
+ import { stringHash, equals } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
5
+ import { map, ofArray } from "../../fable_modules/fable-library-js.5.21.0/List.js";
6
+ import { List_distinctBy } from "../../fable_modules/fable-library-js.5.21.0/Seq2.js";
7
7
  import { $007CHasTypeFlags$007C_$007C } from "./Utils.js";
8
8
 
9
9
  export function readConditionalType(reader, typeNode) {
@@ -1,14 +1,14 @@
1
1
 
2
- import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.17.2/FSharp.Core.js";
3
- import { Exception, defaultOf } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
2
+ import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.21.0/FSharp.Core.js";
3
+ import { Exception, defaultOf } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
4
4
  import { resolveAlias, readMemberTypeParameters, isPrivateMember, ModifierUtil_GetAccessor_2944DA29, ModifierUtil_HasModifier_742AC9D, identifierText, ModifierUtil_GetAccessor_Z1CCFC6BA } from "./Utils.js";
5
5
  import { GlueAccessor, GlueType, GluePrimitive, GlueIndexSignature, GlueConstructSignature, GlueCallSignature, GlueSetAccessor, GlueGetAccessor, GlueMethod, GlueMethodSignature, GlueMember, GlueProperty } from "../GlueAST.js";
6
- import { defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
7
- import { exists } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
8
- import { item } from "../../fable_modules/fable-library-js.5.17.2/Array.js";
9
- import { empty } from "../../fable_modules/fable-library-js.5.17.2/List.js";
6
+ import { defaultArg } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
7
+ import { exists } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
8
+ import { item } from "../../fable_modules/fable-library-js.5.21.0/Array.js";
9
+ import { empty } from "../../fable_modules/fable-library-js.5.21.0/List.js";
10
10
  import { Report_readerError_Z19516DCE } from "./Report.js";
11
- import { concat } from "../../fable_modules/fable-library-js.5.17.2/String.js";
11
+ import { concat } from "../../fable_modules/fable-library-js.5.21.0/String.js";
12
12
  import { TypeScript_Ts_SyntaxKind__SyntaxKind_get_Name } from "../TypeScript.Extensions.js";
13
13
 
14
14
  /**
@@ -1,15 +1,15 @@
1
1
 
2
2
  import { primitiveOfFlags, entityNameText, mainDeclaration, typeNodeBuilderFlags, enclosingDeclarationOf, resolveAlias, symbolAtLocation, identifierText, $007CHasTypeFlags$007C_$007C } from "./Utils.js";
3
- import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.17.2/FSharp.Core.js";
4
- import { length, truncate, isEmpty, exists as exists_1, choose, cons, collect as collect_1, singleton, tryFind, fold, append, empty, reverse } from "../../fable_modules/fable-library-js.5.17.2/List.js";
5
- import { toArray, defaultArg, value as value_1 } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
6
- import { tryHead, tryFindIndex, collect as collect_2, empty as empty_3, singleton as singleton_1, append as append_1, delay, filter, map, exists, toList } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
7
- import { FSharpMap__get_Count, FSharpMap__get_Values, FSharpMap__TryFind, empty as empty_1, FSharpMap__ContainsKey, FSharpMap__Add } from "../../fable_modules/fable-library-js.5.17.2/Map.js";
8
- import { comparePrimitives } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
3
+ import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.21.0/FSharp.Core.js";
4
+ import { length, truncate, isEmpty, exists as exists_1, choose, cons, collect as collect_1, singleton, tryFind, fold, append, empty, reverse } from "../../fable_modules/fable-library-js.5.21.0/List.js";
5
+ import { toArray, defaultArg, value as value_1 } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
6
+ import { tryHead, tryFindIndex, collect as collect_2, empty as empty_3, singleton as singleton_1, append as append_1, delay, filter, map, exists, toList } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
7
+ import { FSharpMap__get_Count, FSharpMap__get_Values, FSharpMap__TryFind, empty as empty_1, FSharpMap__ContainsKey, FSharpMap__Add } from "../../fable_modules/fable-library-js.5.21.0/Map.js";
8
+ import { comparePrimitives } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
9
9
  import { ts } from "@ts-morph/bootstrap";
10
- import { empty as empty_2, FSharpSet__Add, FSharpSet__Contains } from "../../fable_modules/fable-library-js.5.17.2/Set.js";
10
+ import { empty as empty_2, FSharpSet__Add, FSharpSet__Contains } from "../../fable_modules/fable-library-js.5.21.0/Set.js";
11
11
  import { GlueClassDeclaration, GluePrimitive, GlueType } from "../GlueAST.js";
12
- import { item } from "../../fable_modules/fable-library-js.5.17.2/Array.js";
12
+ import { item } from "../../fable_modules/fable-library-js.5.21.0/Array.js";
13
13
 
14
14
  /**
15
15
  * A conditional type the checker can't resolve without its type arguments
@@ -1,13 +1,13 @@
1
1
 
2
2
  import { ts } from "@ts-morph/bootstrap";
3
- import { singleton, empty, append as append_1, delay, indexed, choose, toList, tryItem } from "../../fable_modules/fable-library-js.5.17.2/Seq.js";
4
- import { isNullOrWhiteSpace, concat } from "../../fable_modules/fable-library-js.5.17.2/String.js";
5
- import { value as value_3, defaultArg } from "../../fable_modules/fable-library-js.5.17.2/Option.js";
6
- import { match } from "../../fable_modules/fable-library-js.5.17.2/RegExp.js";
7
- import { empty as empty_1, forAll, append } from "../../fable_modules/fable-library-js.5.17.2/List.js";
3
+ import { singleton, empty, append as append_1, delay, indexed, choose, toList, tryItem } from "../../fable_modules/fable-library-js.5.21.0/Seq.js";
4
+ import { isNullOrWhiteSpace, concat } from "../../fable_modules/fable-library-js.5.21.0/String.js";
5
+ import { value as value_3, defaultArg } from "../../fable_modules/fable-library-js.5.21.0/Option.js";
6
+ import { match } from "../../fable_modules/fable-library-js.5.21.0/RegExp.js";
7
+ import { empty as empty_1, forAll, append } from "../../fable_modules/fable-library-js.5.21.0/List.js";
8
8
  import { splitLines } from "../Utils/String.js";
9
9
  import { GlueCommentParam, GlueCommentTypeParam, GlueComment } from "../GlueAST.js";
10
- import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.17.2/FSharp.Core.js";
10
+ import { Operators_IsNull } from "../../fable_modules/fable-library-js.5.21.0/FSharp.Core.js";
11
11
 
12
12
  function textOfComment(comment) {
13
13
  if (typeof comment === "string") {
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { GlueEnum, GlueEnumMember, GlueLiteral } from "../GlueAST.js";
3
- import { fold, ofSeq, empty, singleton, append } from "../../fable_modules/fable-library-js.5.17.2/List.js";
4
- import { uncurry2 } from "../../fable_modules/fable-library-js.5.17.2/Util.js";
3
+ import { fold, ofSeq, empty, singleton, append } from "../../fable_modules/fable-library-js.5.21.0/List.js";
4
+ import { uncurry2 } from "../../fable_modules/fable-library-js.5.21.0/Util.js";
5
5
 
6
6
  function readEnumMembers(checker, state, enumMember) {
7
7
  let num, str;