@glutinum/cli 0.13.0 → 0.14.0

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 (273) hide show
  1. package/README.md +19 -1
  2. package/dist/Glutinum.Converter/Abbreviations.js +246 -0
  3. package/dist/Glutinum.Converter/FsharpAST.js +87 -28
  4. package/dist/Glutinum.Converter/Generate.js +55 -8
  5. package/dist/Glutinum.Converter/GlueAST.js +333 -34
  6. package/dist/Glutinum.Converter/Log.js +7 -8
  7. package/dist/Glutinum.Converter/Merge.js +683 -31
  8. package/dist/Glutinum.Converter/Packages.js +308 -0
  9. package/dist/Glutinum.Converter/Printer.js +323 -186
  10. package/dist/Glutinum.Converter/Read.js +279 -6
  11. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
  12. package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
  13. package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
  14. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
  15. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
  16. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
  17. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
  18. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
  19. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
  20. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
  21. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -9
  22. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
  23. package/dist/Glutinum.Converter/Reader/Node.js +24 -10
  24. package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
  25. package/dist/Glutinum.Converter/Reader/Report.js +31 -12
  26. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
  27. package/dist/Glutinum.Converter/Reader/TypeNode.js +1524 -253
  28. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
  29. package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
  30. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
  31. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
  32. package/dist/Glutinum.Converter/Reader/Types.js +180 -0
  33. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
  34. package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
  35. package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
  36. package/dist/Glutinum.Converter/Transform.js +8292 -1119
  37. package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
  38. package/dist/Glutinum.Converter/TypeScript.js +3 -3
  39. package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
  40. package/dist/Glutinum.Converter/Utils/List.js +3 -3
  41. package/dist/Glutinum.Converter/Utils/Naming.js +61 -12
  42. package/dist/Glutinum.Converter/Utils/String.js +7 -3
  43. package/dist/Program.js +230 -72
  44. package/package.json +4 -4
  45. package/src/Glutinum.Converter/js/bootstrap.js +109 -2
  46. package/src/Glutinum.Converter/js/host.js +144 -0
  47. package/src/Glutinum.Converter/js/npm.js +137 -0
  48. package/src/Glutinum.Converter/js/resolve.js +402 -0
  49. package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
  50. package/dist/Glutinum.Converter/Generate.js.map +0 -1
  51. package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
  52. package/dist/Glutinum.Converter/Log.js.map +0 -1
  53. package/dist/Glutinum.Converter/Merge.js.map +0 -1
  54. package/dist/Glutinum.Converter/Printer.js.map +0 -1
  55. package/dist/Glutinum.Converter/Read.js.map +0 -1
  56. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
  57. package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
  58. package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
  59. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
  60. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
  61. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
  62. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
  63. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
  64. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
  65. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
  66. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
  67. package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
  68. package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
  69. package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
  70. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
  71. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
  72. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
  73. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
  74. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
  75. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
  76. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
  77. package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
  78. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
  79. package/dist/Glutinum.Converter/Transform.js.map +0 -1
  80. package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
  81. package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
  82. package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
  83. package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
  84. package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
  85. package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
  86. package/dist/Program.js.map +0 -1
  87. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  88. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
  89. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  90. package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  91. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  92. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
  93. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  94. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  95. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
  96. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  97. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
  98. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
  99. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
  100. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
  101. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
  102. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
  103. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
  104. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
  105. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
  106. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
  107. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
  108. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
  109. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
  110. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
  111. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
  112. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
  113. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
  114. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
  115. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
  116. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
  117. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
  118. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
  119. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
  120. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
  121. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
  122. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
  123. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
  124. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
  125. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
  126. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
  127. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
  128. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
  129. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
  130. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
  131. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
  132. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
  133. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
  134. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
  135. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
  136. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
  137. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
  138. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
  139. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
  140. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
  141. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
  142. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
  143. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
  144. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
  145. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
  146. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
  147. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
  148. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
  149. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
  150. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
  151. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
  152. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
  153. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
  154. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
  155. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
  156. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
  157. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
  158. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
  159. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  160. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  161. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
  162. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  163. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  164. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  165. package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
  166. package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
  167. package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
  168. package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
  169. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
  170. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
  171. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
  172. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
  173. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
  174. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
  175. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
  176. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
  177. package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
  178. package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
  179. package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
  180. package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
  181. package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
  182. package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
  183. package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
  184. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
  185. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
  186. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
  187. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
  188. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
  189. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
  190. package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
  191. package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
  192. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
  193. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
  194. package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
  195. package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
  196. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
  197. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
  198. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
  199. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
  200. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
  201. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
  202. package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
  203. package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
  204. package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
  205. package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
  206. package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
  207. package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
  208. package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
  209. package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
  210. package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
  211. package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
  212. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
  213. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
  214. package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
  215. package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
  216. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
  217. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
  218. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
  219. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
  220. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
  221. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
  222. package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
  223. package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
  224. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
  225. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
  226. package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
  227. package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
  228. package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
  229. package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
  230. package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
  231. package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
  232. package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
  233. package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
  234. package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
  235. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
  236. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
  237. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
  238. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
  239. package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
  240. package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
  241. package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
  242. package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
  243. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
  244. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
  245. package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
  246. package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
  247. package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
  248. package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
  249. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
  250. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
  251. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
  252. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
  253. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
  254. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
  255. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
  256. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
  257. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
  258. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
  259. package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
  260. package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
  261. package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
  262. package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
  263. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
  264. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
  265. package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
  266. package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
  267. package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
  268. package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
  269. package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
  270. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
  271. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
  272. package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
  273. package/dist/fable_modules/project_cracked.json +0 -1
@@ -1,169 +0,0 @@
1
- import * as Unicode from "./Unicode.13.0.0.js";
2
- function getCategoryFunc() {
3
- // unpack Unicode codepoint ranges (delta encoded) and general categories
4
- const offset = 35; // offsets unprintable characters
5
- const a1 = [...Unicode.rangeDeltas].map((ch) => (ch.codePointAt(0) ?? 0) - offset);
6
- const a2 = [...Unicode.categories].map((ch) => (ch.codePointAt(0) ?? 0) - offset);
7
- const codepoints = new Uint32Array(a1);
8
- const categories = new Uint8Array(a2);
9
- for (let i = 1; i < codepoints.length; ++i) {
10
- codepoints[i] += codepoints[i - 1];
11
- }
12
- // binary search in unicode ranges
13
- return (cp) => {
14
- let hi = codepoints.length;
15
- let lo = 0;
16
- while (hi - lo > 1) {
17
- const mid = Math.floor((hi + lo) / 2);
18
- const test = codepoints[mid];
19
- if (cp < test) {
20
- hi = mid;
21
- }
22
- else if (cp === test) {
23
- hi = lo = mid;
24
- break;
25
- }
26
- else if (test < cp) {
27
- lo = mid;
28
- }
29
- }
30
- return categories[lo];
31
- };
32
- }
33
- const isControlMask = 1 << 14 /* UnicodeCategory.Control */;
34
- const isDigitMask = 1 << 8 /* UnicodeCategory.DecimalDigitNumber */;
35
- const isLetterMask = 0
36
- | 1 << 0 /* UnicodeCategory.UppercaseLetter */
37
- | 1 << 1 /* UnicodeCategory.LowercaseLetter */
38
- | 1 << 2 /* UnicodeCategory.TitlecaseLetter */
39
- | 1 << 3 /* UnicodeCategory.ModifierLetter */
40
- | 1 << 4 /* UnicodeCategory.OtherLetter */;
41
- const isLetterOrDigitMask = isLetterMask | isDigitMask;
42
- const isUpperMask = 1 << 0 /* UnicodeCategory.UppercaseLetter */;
43
- const isLowerMask = 1 << 1 /* UnicodeCategory.LowercaseLetter */;
44
- const isNumberMask = 0
45
- | 1 << 8 /* UnicodeCategory.DecimalDigitNumber */
46
- | 1 << 9 /* UnicodeCategory.LetterNumber */
47
- | 1 << 10 /* UnicodeCategory.OtherNumber */;
48
- const isPunctuationMask = 0
49
- | 1 << 18 /* UnicodeCategory.ConnectorPunctuation */
50
- | 1 << 19 /* UnicodeCategory.DashPunctuation */
51
- | 1 << 20 /* UnicodeCategory.OpenPunctuation */
52
- | 1 << 21 /* UnicodeCategory.ClosePunctuation */
53
- | 1 << 22 /* UnicodeCategory.InitialQuotePunctuation */
54
- | 1 << 23 /* UnicodeCategory.FinalQuotePunctuation */
55
- | 1 << 24 /* UnicodeCategory.OtherPunctuation */;
56
- const isSeparatorMask = 0
57
- | 1 << 11 /* UnicodeCategory.SpaceSeparator */
58
- | 1 << 12 /* UnicodeCategory.LineSeparator */
59
- | 1 << 13 /* UnicodeCategory.ParagraphSeparator */;
60
- const isSymbolMask = 0
61
- | 1 << 25 /* UnicodeCategory.MathSymbol */
62
- | 1 << 26 /* UnicodeCategory.CurrencySymbol */
63
- | 1 << 27 /* UnicodeCategory.ModifierSymbol */
64
- | 1 << 28 /* UnicodeCategory.OtherSymbol */;
65
- const isWhiteSpaceMask = 0
66
- | 1 << 11 /* UnicodeCategory.SpaceSeparator */
67
- | 1 << 12 /* UnicodeCategory.LineSeparator */
68
- | 1 << 13 /* UnicodeCategory.ParagraphSeparator */;
69
- const unicodeCategoryFunc = getCategoryFunc();
70
- function charCodeAt(s, index) {
71
- if (index >= 0 && index < s.length) {
72
- return s.charCodeAt(index);
73
- }
74
- else {
75
- throw new Error("Index out of range.");
76
- }
77
- }
78
- export const getUnicodeCategory = (s) => getUnicodeCategory2(s, 0);
79
- export const isControl = (s) => isControl2(s, 0);
80
- export const isDigit = (s) => isDigit2(s, 0);
81
- export const isLetter = (s) => isLetter2(s, 0);
82
- export const isLetterOrDigit = (s) => isLetterOrDigit2(s, 0);
83
- export const isUpper = (s) => isUpper2(s, 0);
84
- export const isLower = (s) => isLower2(s, 0);
85
- export const isNumber = (s) => isNumber2(s, 0);
86
- export const isPunctuation = (s) => isPunctuation2(s, 0);
87
- export const isSeparator = (s) => isSeparator2(s, 0);
88
- export const isSymbol = (s) => isSymbol2(s, 0);
89
- export const isWhiteSpace = (s) => isWhiteSpace2(s, 0);
90
- export const isHighSurrogate = (s) => isHighSurrogate2(s, 0);
91
- export const isLowSurrogate = (s) => isLowSurrogate2(s, 0);
92
- export const isSurrogate = (s) => isSurrogate2(s, 0);
93
- export function getUnicodeCategory2(s, index) {
94
- const cp = charCodeAt(s, index);
95
- return unicodeCategoryFunc(cp);
96
- }
97
- export function isControl2(s, index) {
98
- const test = 1 << getUnicodeCategory2(s, index);
99
- return (test & isControlMask) !== 0;
100
- }
101
- export function isDigit2(s, index) {
102
- const test = 1 << getUnicodeCategory2(s, index);
103
- return (test & isDigitMask) !== 0;
104
- }
105
- export function isLetter2(s, index) {
106
- const test = 1 << getUnicodeCategory2(s, index);
107
- return (test & isLetterMask) !== 0;
108
- }
109
- export function isLetterOrDigit2(s, index) {
110
- const test = 1 << getUnicodeCategory2(s, index);
111
- return (test & isLetterOrDigitMask) !== 0;
112
- }
113
- export function isUpper2(s, index) {
114
- const test = 1 << getUnicodeCategory2(s, index);
115
- return (test & isUpperMask) !== 0;
116
- }
117
- export function isLower2(s, index) {
118
- const test = 1 << getUnicodeCategory2(s, index);
119
- return (test & isLowerMask) !== 0;
120
- }
121
- export function isNumber2(s, index) {
122
- const test = 1 << getUnicodeCategory2(s, index);
123
- return (test & isNumberMask) !== 0;
124
- }
125
- export function isPunctuation2(s, index) {
126
- const test = 1 << getUnicodeCategory2(s, index);
127
- return (test & isPunctuationMask) !== 0;
128
- }
129
- export function isSeparator2(s, index) {
130
- const test = 1 << getUnicodeCategory2(s, index);
131
- return (test & isSeparatorMask) !== 0;
132
- }
133
- export function isSymbol2(s, index) {
134
- const test = 1 << getUnicodeCategory2(s, index);
135
- return (test & isSymbolMask) !== 0;
136
- }
137
- export function isWhiteSpace2(s, index) {
138
- const test = 1 << getUnicodeCategory2(s, index);
139
- if ((test & isWhiteSpaceMask) !== 0) {
140
- return true;
141
- }
142
- const cp = charCodeAt(s, index);
143
- return (0x09 <= cp && cp <= 0x0D) || cp === 0x85 || cp === 0xA0;
144
- }
145
- export function isHighSurrogate2(s, index) {
146
- const cp = charCodeAt(s, index);
147
- return (0xD800 <= cp && cp <= 0xDBFF);
148
- }
149
- export function isLowSurrogate2(s, index) {
150
- const cp = charCodeAt(s, index);
151
- return (0xDC00 <= cp && cp <= 0xDFFF);
152
- }
153
- export function isSurrogate2(s, index) {
154
- const cp = charCodeAt(s, index);
155
- return (0xD800 <= cp && cp <= 0xDFFF);
156
- }
157
- export function isSurrogatePair(s, index) {
158
- return typeof index === "number"
159
- ? isHighSurrogate2(s, index) && isLowSurrogate2(s, index + 1)
160
- : isHighSurrogate(s) && isLowSurrogate(index);
161
- }
162
- export function parse(input) {
163
- if (input.length === 1) {
164
- return input[0];
165
- }
166
- else {
167
- throw new Error("String must be exactly one character long.");
168
- }
169
- }
@@ -1,121 +0,0 @@
1
- import { Union } from "./Types.js";
2
- import { TypeInfo } from "./Reflection.js";
3
- import { Option } from "./Option.js";
4
- export type FSharpChoice$2_$union<T1, T2> = FSharpChoice$2<T1, T2, 0> | FSharpChoice$2<T1, T2, 1>;
5
- export type FSharpChoice$2_$cases<T1, T2> = {
6
- 0: ["Choice1Of2", [T1]];
7
- 1: ["Choice2Of2", [T2]];
8
- };
9
- export declare function FSharpChoice$2_Choice1Of2<T1, T2>(Item: T1): FSharpChoice$2<T1, T2, 0>;
10
- export declare function FSharpChoice$2_Choice2Of2<T1, T2>(Item: T2): FSharpChoice$2<T1, T2, 1>;
11
- export declare class FSharpChoice$2<T1, T2, Tag extends keyof FSharpChoice$2_$cases<T1, T2>> extends Union<Tag, FSharpChoice$2_$cases<T1, T2>[Tag][0]> {
12
- readonly tag: Tag;
13
- readonly fields: FSharpChoice$2_$cases<T1, T2>[Tag][1];
14
- constructor(tag: Tag, fields: FSharpChoice$2_$cases<T1, T2>[Tag][1]);
15
- cases(): string[];
16
- }
17
- export declare function FSharpChoice$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
18
- export type FSharpChoice$3_$union<T1, T2, T3> = FSharpChoice$3<T1, T2, T3, 0> | FSharpChoice$3<T1, T2, T3, 1> | FSharpChoice$3<T1, T2, T3, 2>;
19
- export type FSharpChoice$3_$cases<T1, T2, T3> = {
20
- 0: ["Choice1Of3", [T1]];
21
- 1: ["Choice2Of3", [T2]];
22
- 2: ["Choice3Of3", [T3]];
23
- };
24
- export declare function FSharpChoice$3_Choice1Of3<T1, T2, T3>(Item: T1): FSharpChoice$3<T1, T2, T3, 0>;
25
- export declare function FSharpChoice$3_Choice2Of3<T1, T2, T3>(Item: T2): FSharpChoice$3<T1, T2, T3, 1>;
26
- export declare function FSharpChoice$3_Choice3Of3<T1, T2, T3>(Item: T3): FSharpChoice$3<T1, T2, T3, 2>;
27
- export declare class FSharpChoice$3<T1, T2, T3, Tag extends keyof FSharpChoice$3_$cases<T1, T2, T3>> extends Union<Tag, FSharpChoice$3_$cases<T1, T2, T3>[Tag][0]> {
28
- readonly tag: Tag;
29
- readonly fields: FSharpChoice$3_$cases<T1, T2, T3>[Tag][1];
30
- constructor(tag: Tag, fields: FSharpChoice$3_$cases<T1, T2, T3>[Tag][1]);
31
- cases(): string[];
32
- }
33
- export declare function FSharpChoice$3_$reflection(gen0: TypeInfo, gen1: TypeInfo, gen2: TypeInfo): TypeInfo;
34
- export type FSharpChoice$4_$union<T1, T2, T3, T4> = FSharpChoice$4<T1, T2, T3, T4, 0> | FSharpChoice$4<T1, T2, T3, T4, 1> | FSharpChoice$4<T1, T2, T3, T4, 2> | FSharpChoice$4<T1, T2, T3, T4, 3>;
35
- export type FSharpChoice$4_$cases<T1, T2, T3, T4> = {
36
- 0: ["Choice1Of4", [T1]];
37
- 1: ["Choice2Of4", [T2]];
38
- 2: ["Choice3Of4", [T3]];
39
- 3: ["Choice4Of4", [T4]];
40
- };
41
- export declare function FSharpChoice$4_Choice1Of4<T1, T2, T3, T4>(Item: T1): FSharpChoice$4<T1, T2, T3, T4, 0>;
42
- export declare function FSharpChoice$4_Choice2Of4<T1, T2, T3, T4>(Item: T2): FSharpChoice$4<T1, T2, T3, T4, 1>;
43
- export declare function FSharpChoice$4_Choice3Of4<T1, T2, T3, T4>(Item: T3): FSharpChoice$4<T1, T2, T3, T4, 2>;
44
- export declare function FSharpChoice$4_Choice4Of4<T1, T2, T3, T4>(Item: T4): FSharpChoice$4<T1, T2, T3, T4, 3>;
45
- export declare class FSharpChoice$4<T1, T2, T3, T4, Tag extends keyof FSharpChoice$4_$cases<T1, T2, T3, T4>> extends Union<Tag, FSharpChoice$4_$cases<T1, T2, T3, T4>[Tag][0]> {
46
- readonly tag: Tag;
47
- readonly fields: FSharpChoice$4_$cases<T1, T2, T3, T4>[Tag][1];
48
- constructor(tag: Tag, fields: FSharpChoice$4_$cases<T1, T2, T3, T4>[Tag][1]);
49
- cases(): string[];
50
- }
51
- export declare function FSharpChoice$4_$reflection(gen0: TypeInfo, gen1: TypeInfo, gen2: TypeInfo, gen3: TypeInfo): TypeInfo;
52
- export type FSharpChoice$5_$union<T1, T2, T3, T4, T5> = FSharpChoice$5<T1, T2, T3, T4, T5, 0> | FSharpChoice$5<T1, T2, T3, T4, T5, 1> | FSharpChoice$5<T1, T2, T3, T4, T5, 2> | FSharpChoice$5<T1, T2, T3, T4, T5, 3> | FSharpChoice$5<T1, T2, T3, T4, T5, 4>;
53
- export type FSharpChoice$5_$cases<T1, T2, T3, T4, T5> = {
54
- 0: ["Choice1Of5", [T1]];
55
- 1: ["Choice2Of5", [T2]];
56
- 2: ["Choice3Of5", [T3]];
57
- 3: ["Choice4Of5", [T4]];
58
- 4: ["Choice5Of5", [T5]];
59
- };
60
- export declare function FSharpChoice$5_Choice1Of5<T1, T2, T3, T4, T5>(Item: T1): FSharpChoice$5<T1, T2, T3, T4, T5, 0>;
61
- export declare function FSharpChoice$5_Choice2Of5<T1, T2, T3, T4, T5>(Item: T2): FSharpChoice$5<T1, T2, T3, T4, T5, 1>;
62
- export declare function FSharpChoice$5_Choice3Of5<T1, T2, T3, T4, T5>(Item: T3): FSharpChoice$5<T1, T2, T3, T4, T5, 2>;
63
- export declare function FSharpChoice$5_Choice4Of5<T1, T2, T3, T4, T5>(Item: T4): FSharpChoice$5<T1, T2, T3, T4, T5, 3>;
64
- export declare function FSharpChoice$5_Choice5Of5<T1, T2, T3, T4, T5>(Item: T5): FSharpChoice$5<T1, T2, T3, T4, T5, 4>;
65
- export declare class FSharpChoice$5<T1, T2, T3, T4, T5, Tag extends keyof FSharpChoice$5_$cases<T1, T2, T3, T4, T5>> extends Union<Tag, FSharpChoice$5_$cases<T1, T2, T3, T4, T5>[Tag][0]> {
66
- readonly tag: Tag;
67
- readonly fields: FSharpChoice$5_$cases<T1, T2, T3, T4, T5>[Tag][1];
68
- constructor(tag: Tag, fields: FSharpChoice$5_$cases<T1, T2, T3, T4, T5>[Tag][1]);
69
- cases(): string[];
70
- }
71
- export declare function FSharpChoice$5_$reflection(gen0: TypeInfo, gen1: TypeInfo, gen2: TypeInfo, gen3: TypeInfo, gen4: TypeInfo): TypeInfo;
72
- export type FSharpChoice$6_$union<T1, T2, T3, T4, T5, T6> = FSharpChoice$6<T1, T2, T3, T4, T5, T6, 0> | FSharpChoice$6<T1, T2, T3, T4, T5, T6, 1> | FSharpChoice$6<T1, T2, T3, T4, T5, T6, 2> | FSharpChoice$6<T1, T2, T3, T4, T5, T6, 3> | FSharpChoice$6<T1, T2, T3, T4, T5, T6, 4> | FSharpChoice$6<T1, T2, T3, T4, T5, T6, 5>;
73
- export type FSharpChoice$6_$cases<T1, T2, T3, T4, T5, T6> = {
74
- 0: ["Choice1Of6", [T1]];
75
- 1: ["Choice2Of6", [T2]];
76
- 2: ["Choice3Of6", [T3]];
77
- 3: ["Choice4Of6", [T4]];
78
- 4: ["Choice5Of6", [T5]];
79
- 5: ["Choice6Of6", [T6]];
80
- };
81
- export declare function FSharpChoice$6_Choice1Of6<T1, T2, T3, T4, T5, T6>(Item: T1): FSharpChoice$6<T1, T2, T3, T4, T5, T6, 0>;
82
- export declare function FSharpChoice$6_Choice2Of6<T1, T2, T3, T4, T5, T6>(Item: T2): FSharpChoice$6<T1, T2, T3, T4, T5, T6, 1>;
83
- export declare function FSharpChoice$6_Choice3Of6<T1, T2, T3, T4, T5, T6>(Item: T3): FSharpChoice$6<T1, T2, T3, T4, T5, T6, 2>;
84
- export declare function FSharpChoice$6_Choice4Of6<T1, T2, T3, T4, T5, T6>(Item: T4): FSharpChoice$6<T1, T2, T3, T4, T5, T6, 3>;
85
- export declare function FSharpChoice$6_Choice5Of6<T1, T2, T3, T4, T5, T6>(Item: T5): FSharpChoice$6<T1, T2, T3, T4, T5, T6, 4>;
86
- export declare function FSharpChoice$6_Choice6Of6<T1, T2, T3, T4, T5, T6>(Item: T6): FSharpChoice$6<T1, T2, T3, T4, T5, T6, 5>;
87
- export declare class FSharpChoice$6<T1, T2, T3, T4, T5, T6, Tag extends keyof FSharpChoice$6_$cases<T1, T2, T3, T4, T5, T6>> extends Union<Tag, FSharpChoice$6_$cases<T1, T2, T3, T4, T5, T6>[Tag][0]> {
88
- readonly tag: Tag;
89
- readonly fields: FSharpChoice$6_$cases<T1, T2, T3, T4, T5, T6>[Tag][1];
90
- constructor(tag: Tag, fields: FSharpChoice$6_$cases<T1, T2, T3, T4, T5, T6>[Tag][1]);
91
- cases(): string[];
92
- }
93
- export declare function FSharpChoice$6_$reflection(gen0: TypeInfo, gen1: TypeInfo, gen2: TypeInfo, gen3: TypeInfo, gen4: TypeInfo, gen5: TypeInfo): TypeInfo;
94
- export type FSharpChoice$7_$union<T1, T2, T3, T4, T5, T6, T7> = FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 0> | FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 1> | FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 2> | FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 3> | FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 4> | FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 5> | FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 6>;
95
- export type FSharpChoice$7_$cases<T1, T2, T3, T4, T5, T6, T7> = {
96
- 0: ["Choice1Of7", [T1]];
97
- 1: ["Choice2Of7", [T2]];
98
- 2: ["Choice3Of7", [T3]];
99
- 3: ["Choice4Of7", [T4]];
100
- 4: ["Choice5Of7", [T5]];
101
- 5: ["Choice6Of7", [T6]];
102
- 6: ["Choice7Of7", [T7]];
103
- };
104
- export declare function FSharpChoice$7_Choice1Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T1): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 0>;
105
- export declare function FSharpChoice$7_Choice2Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T2): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 1>;
106
- export declare function FSharpChoice$7_Choice3Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T3): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 2>;
107
- export declare function FSharpChoice$7_Choice4Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T4): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 3>;
108
- export declare function FSharpChoice$7_Choice5Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T5): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 4>;
109
- export declare function FSharpChoice$7_Choice6Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T6): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 5>;
110
- export declare function FSharpChoice$7_Choice7Of7<T1, T2, T3, T4, T5, T6, T7>(Item: T7): FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, 6>;
111
- export declare class FSharpChoice$7<T1, T2, T3, T4, T5, T6, T7, Tag extends keyof FSharpChoice$7_$cases<T1, T2, T3, T4, T5, T6, T7>> extends Union<Tag, FSharpChoice$7_$cases<T1, T2, T3, T4, T5, T6, T7>[Tag][0]> {
112
- readonly tag: Tag;
113
- readonly fields: FSharpChoice$7_$cases<T1, T2, T3, T4, T5, T6, T7>[Tag][1];
114
- constructor(tag: Tag, fields: FSharpChoice$7_$cases<T1, T2, T3, T4, T5, T6, T7>[Tag][1]);
115
- cases(): string[];
116
- }
117
- export declare function FSharpChoice$7_$reflection(gen0: TypeInfo, gen1: TypeInfo, gen2: TypeInfo, gen3: TypeInfo, gen4: TypeInfo, gen5: TypeInfo, gen6: TypeInfo): TypeInfo;
118
- export declare function Choice_makeChoice1Of2<T1, a>(x: T1): FSharpChoice$2_$union<T1, a>;
119
- export declare function Choice_makeChoice2Of2<T2, a>(x: T2): FSharpChoice$2_$union<a, T2>;
120
- export declare function Choice_tryValueIfChoice1Of2<T1, T2>(x: FSharpChoice$2_$union<T1, T2>): Option<T1>;
121
- export declare function Choice_tryValueIfChoice2Of2<T1, T2>(x: FSharpChoice$2_$union<T1, T2>): Option<T2>;
@@ -1,184 +0,0 @@
1
- import { Union } from "./Types.js";
2
- import { union_type } from "./Reflection.js";
3
- import { some } from "./Option.js";
4
- export function FSharpChoice$2_Choice1Of2(Item) {
5
- return new FSharpChoice$2(0, [Item]);
6
- }
7
- export function FSharpChoice$2_Choice2Of2(Item) {
8
- return new FSharpChoice$2(1, [Item]);
9
- }
10
- export class FSharpChoice$2 extends Union {
11
- constructor(tag, fields) {
12
- super();
13
- this.tag = tag;
14
- this.fields = fields;
15
- }
16
- cases() {
17
- return ["Choice1Of2", "Choice2Of2"];
18
- }
19
- }
20
- export function FSharpChoice$2_$reflection(gen0, gen1) {
21
- return union_type("FSharp.Core.FSharpChoice`2", [gen0, gen1], FSharpChoice$2, () => [[["Item", gen0]], [["Item", gen1]]]);
22
- }
23
- export function FSharpChoice$3_Choice1Of3(Item) {
24
- return new FSharpChoice$3(0, [Item]);
25
- }
26
- export function FSharpChoice$3_Choice2Of3(Item) {
27
- return new FSharpChoice$3(1, [Item]);
28
- }
29
- export function FSharpChoice$3_Choice3Of3(Item) {
30
- return new FSharpChoice$3(2, [Item]);
31
- }
32
- export class FSharpChoice$3 extends Union {
33
- constructor(tag, fields) {
34
- super();
35
- this.tag = tag;
36
- this.fields = fields;
37
- }
38
- cases() {
39
- return ["Choice1Of3", "Choice2Of3", "Choice3Of3"];
40
- }
41
- }
42
- export function FSharpChoice$3_$reflection(gen0, gen1, gen2) {
43
- return union_type("FSharp.Core.FSharpChoice`3", [gen0, gen1, gen2], FSharpChoice$3, () => [[["Item", gen0]], [["Item", gen1]], [["Item", gen2]]]);
44
- }
45
- export function FSharpChoice$4_Choice1Of4(Item) {
46
- return new FSharpChoice$4(0, [Item]);
47
- }
48
- export function FSharpChoice$4_Choice2Of4(Item) {
49
- return new FSharpChoice$4(1, [Item]);
50
- }
51
- export function FSharpChoice$4_Choice3Of4(Item) {
52
- return new FSharpChoice$4(2, [Item]);
53
- }
54
- export function FSharpChoice$4_Choice4Of4(Item) {
55
- return new FSharpChoice$4(3, [Item]);
56
- }
57
- export class FSharpChoice$4 extends Union {
58
- constructor(tag, fields) {
59
- super();
60
- this.tag = tag;
61
- this.fields = fields;
62
- }
63
- cases() {
64
- return ["Choice1Of4", "Choice2Of4", "Choice3Of4", "Choice4Of4"];
65
- }
66
- }
67
- export function FSharpChoice$4_$reflection(gen0, gen1, gen2, gen3) {
68
- return union_type("FSharp.Core.FSharpChoice`4", [gen0, gen1, gen2, gen3], FSharpChoice$4, () => [[["Item", gen0]], [["Item", gen1]], [["Item", gen2]], [["Item", gen3]]]);
69
- }
70
- export function FSharpChoice$5_Choice1Of5(Item) {
71
- return new FSharpChoice$5(0, [Item]);
72
- }
73
- export function FSharpChoice$5_Choice2Of5(Item) {
74
- return new FSharpChoice$5(1, [Item]);
75
- }
76
- export function FSharpChoice$5_Choice3Of5(Item) {
77
- return new FSharpChoice$5(2, [Item]);
78
- }
79
- export function FSharpChoice$5_Choice4Of5(Item) {
80
- return new FSharpChoice$5(3, [Item]);
81
- }
82
- export function FSharpChoice$5_Choice5Of5(Item) {
83
- return new FSharpChoice$5(4, [Item]);
84
- }
85
- export class FSharpChoice$5 extends Union {
86
- constructor(tag, fields) {
87
- super();
88
- this.tag = tag;
89
- this.fields = fields;
90
- }
91
- cases() {
92
- return ["Choice1Of5", "Choice2Of5", "Choice3Of5", "Choice4Of5", "Choice5Of5"];
93
- }
94
- }
95
- export function FSharpChoice$5_$reflection(gen0, gen1, gen2, gen3, gen4) {
96
- return union_type("FSharp.Core.FSharpChoice`5", [gen0, gen1, gen2, gen3, gen4], FSharpChoice$5, () => [[["Item", gen0]], [["Item", gen1]], [["Item", gen2]], [["Item", gen3]], [["Item", gen4]]]);
97
- }
98
- export function FSharpChoice$6_Choice1Of6(Item) {
99
- return new FSharpChoice$6(0, [Item]);
100
- }
101
- export function FSharpChoice$6_Choice2Of6(Item) {
102
- return new FSharpChoice$6(1, [Item]);
103
- }
104
- export function FSharpChoice$6_Choice3Of6(Item) {
105
- return new FSharpChoice$6(2, [Item]);
106
- }
107
- export function FSharpChoice$6_Choice4Of6(Item) {
108
- return new FSharpChoice$6(3, [Item]);
109
- }
110
- export function FSharpChoice$6_Choice5Of6(Item) {
111
- return new FSharpChoice$6(4, [Item]);
112
- }
113
- export function FSharpChoice$6_Choice6Of6(Item) {
114
- return new FSharpChoice$6(5, [Item]);
115
- }
116
- export class FSharpChoice$6 extends Union {
117
- constructor(tag, fields) {
118
- super();
119
- this.tag = tag;
120
- this.fields = fields;
121
- }
122
- cases() {
123
- return ["Choice1Of6", "Choice2Of6", "Choice3Of6", "Choice4Of6", "Choice5Of6", "Choice6Of6"];
124
- }
125
- }
126
- export function FSharpChoice$6_$reflection(gen0, gen1, gen2, gen3, gen4, gen5) {
127
- return union_type("FSharp.Core.FSharpChoice`6", [gen0, gen1, gen2, gen3, gen4, gen5], FSharpChoice$6, () => [[["Item", gen0]], [["Item", gen1]], [["Item", gen2]], [["Item", gen3]], [["Item", gen4]], [["Item", gen5]]]);
128
- }
129
- export function FSharpChoice$7_Choice1Of7(Item) {
130
- return new FSharpChoice$7(0, [Item]);
131
- }
132
- export function FSharpChoice$7_Choice2Of7(Item) {
133
- return new FSharpChoice$7(1, [Item]);
134
- }
135
- export function FSharpChoice$7_Choice3Of7(Item) {
136
- return new FSharpChoice$7(2, [Item]);
137
- }
138
- export function FSharpChoice$7_Choice4Of7(Item) {
139
- return new FSharpChoice$7(3, [Item]);
140
- }
141
- export function FSharpChoice$7_Choice5Of7(Item) {
142
- return new FSharpChoice$7(4, [Item]);
143
- }
144
- export function FSharpChoice$7_Choice6Of7(Item) {
145
- return new FSharpChoice$7(5, [Item]);
146
- }
147
- export function FSharpChoice$7_Choice7Of7(Item) {
148
- return new FSharpChoice$7(6, [Item]);
149
- }
150
- export class FSharpChoice$7 extends Union {
151
- constructor(tag, fields) {
152
- super();
153
- this.tag = tag;
154
- this.fields = fields;
155
- }
156
- cases() {
157
- return ["Choice1Of7", "Choice2Of7", "Choice3Of7", "Choice4Of7", "Choice5Of7", "Choice6Of7", "Choice7Of7"];
158
- }
159
- }
160
- export function FSharpChoice$7_$reflection(gen0, gen1, gen2, gen3, gen4, gen5, gen6) {
161
- return union_type("FSharp.Core.FSharpChoice`7", [gen0, gen1, gen2, gen3, gen4, gen5, gen6], FSharpChoice$7, () => [[["Item", gen0]], [["Item", gen1]], [["Item", gen2]], [["Item", gen3]], [["Item", gen4]], [["Item", gen5]], [["Item", gen6]]]);
162
- }
163
- export function Choice_makeChoice1Of2(x) {
164
- return FSharpChoice$2_Choice1Of2(x);
165
- }
166
- export function Choice_makeChoice2Of2(x) {
167
- return FSharpChoice$2_Choice2Of2(x);
168
- }
169
- export function Choice_tryValueIfChoice1Of2(x) {
170
- if (x.tag === /* Choice1Of2 */ 0) {
171
- return some(x.fields[0]);
172
- }
173
- else {
174
- return void 0;
175
- }
176
- }
177
- export function Choice_tryValueIfChoice2Of2(x) {
178
- if (x.tag === /* Choice2Of2 */ 1) {
179
- return some(x.fields[0]);
180
- }
181
- else {
182
- return void 0;
183
- }
184
- }
@@ -1,70 +0,0 @@
1
- /**
2
- * DateTimeOffset functions.
3
- *
4
- * Note: Date instances are always DateObjects in local
5
- * timezone (because JS dates are all kinds of messed up).
6
- * A local date returns UTC epoch when `.getTime()` is called.
7
- *
8
- * Basically; invariant: date.getTime() always return UTC time.
9
- */
10
- import { int64 } from "./BigInt.js";
11
- import { FSharpRef } from "./Types.js";
12
- import { compareDates, DateKind, IDateTime, IDateTimeOffset } from "./Util.js";
13
- export type OffsetInMinutes = number;
14
- export type Offset = "Z" | OffsetInMinutes | null;
15
- export declare function kind(value: IDateTime): number;
16
- export declare function unixEpochMillisecondsToTicks(ms: number, offset: number): int64;
17
- export declare function ticksToUnixEpochMilliseconds(ticks: number | bigint): number;
18
- export declare function dateOffsetToString(offset: number): string;
19
- export declare function dateToHalfUTCString(date: IDateTime, half: "first" | "second"): string;
20
- export declare function toString(date: IDateTime | IDateTimeOffset, format?: string, _provider?: any): string;
21
- export declare function DateTime(value: number, kind?: DateKind): IDateTime;
22
- export declare function fromTicks(ticks: number | bigint, kind?: DateKind): IDateTime;
23
- export declare function fromDateTimeOffset(date: IDateTimeOffset, kind: DateKind): IDateTime;
24
- export declare function getTicks(date: IDateTime | IDateTimeOffset): bigint;
25
- export declare function minValue(): IDateTime;
26
- export declare function maxValue(): IDateTime;
27
- export declare function parseRaw(input: string): [Date, Offset];
28
- export declare function parse(str: string, detectUTC?: boolean): IDateTime;
29
- export declare function tryParse(v: string, defValue: FSharpRef<IDateTime>): boolean;
30
- export declare function create(year: number, month: number, day: number, h?: number, m?: number, s?: number, ms?: number, kind?: DateKind): IDateTime;
31
- export declare function now(): IDateTime;
32
- export declare function utcNow(): IDateTime;
33
- export declare function today(): IDateTime;
34
- export declare function isLeapYear(year: number): boolean;
35
- export declare function daysInMonth(year: number, month: number): 29 | 28 | 31 | 30;
36
- export declare function toUniversalTime(date: IDateTime): IDateTime;
37
- export declare function toLocalTime(date: IDateTime): IDateTime;
38
- export declare function specifyKind(d: IDateTime, kind: DateKind): IDateTime;
39
- export declare function timeOfDay(d: IDateTime): number;
40
- export declare function date(d: IDateTime): IDateTime;
41
- export declare function day(d: IDateTime): number;
42
- export declare function hour(d: IDateTime): number;
43
- export declare function millisecond(d: IDateTime): number;
44
- export declare function minute(d: IDateTime): number;
45
- export declare function month(d: IDateTime): number;
46
- export declare function second(d: IDateTime): number;
47
- export declare function year(d: IDateTime): number;
48
- export declare function dayOfWeek(d: IDateTime): number;
49
- export declare function dayOfYear(d: IDateTime): number;
50
- export declare function add(d: IDateTime, ts: number): IDateTime;
51
- export declare function addDays(d: IDateTime, v: number): IDateTime;
52
- export declare function addHours(d: IDateTime, v: number): IDateTime;
53
- export declare function addMinutes(d: IDateTime, v: number): IDateTime;
54
- export declare function addSeconds(d: IDateTime, v: number): IDateTime;
55
- export declare function addMilliseconds(d: IDateTime, v: number): IDateTime;
56
- export declare function addTicks(d: IDateTime, v: int64): IDateTime;
57
- export declare function addYears(d: IDateTime, v: number): IDateTime;
58
- export declare function addMonths(d: IDateTime, v: number): IDateTime;
59
- export declare function subtract<Input extends number | IDateTime, Output = Input extends number ? IDateTime : number>(d: IDateTime, that: Input): Output;
60
- export declare function toLongDateString(d: IDateTime): string;
61
- export declare function toShortDateString(d: IDateTime): string;
62
- export declare function toLongTimeString(d: IDateTime): string;
63
- export declare function toShortTimeString(d: IDateTime): string;
64
- export declare function equals(d1: IDateTime, d2: IDateTime): boolean;
65
- export declare const compare: typeof compareDates;
66
- export declare const compareTo: typeof compareDates;
67
- export declare function op_Addition(x: IDateTime, y: number): IDateTime;
68
- export declare function op_Subtraction<Input extends number | IDateTime, Output = Input extends number ? IDateTime : number>(x: IDateTime, y: Input): Output;
69
- export declare function isDaylightSavingTime(x: IDateTime): boolean;
70
- export default DateTime;