@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,32 +0,0 @@
1
- import { Continuation, Continuations } from "./AsyncBuilder.js";
2
- import { CancellationToken } from "./AsyncBuilder.js";
3
- import { IAsync } from "./AsyncBuilder.js";
4
- import { IAsyncContext } from "./AsyncBuilder.js";
5
- import { FSharpChoice$2_$union } from "./Choice.js";
6
- export declare class Async<_T> {
7
- }
8
- export declare function makeAsync<T>(body: IAsync<T>): IAsync<T>;
9
- export declare function invoke<T>(computation: IAsync<T>, ctx: IAsyncContext<T>): void;
10
- export declare function callThenInvoke<T, U>(ctx: IAsyncContext<T>, result1: U, part2: (x: U) => IAsync<T>): void;
11
- export declare function bind<T, U>(ctx: IAsyncContext<T>, part1: IAsync<U>, part2: (x: U) => IAsync<T>): void;
12
- export declare function createCancellationToken(arg?: boolean | number): CancellationToken;
13
- export declare function cancel(token: CancellationToken): void;
14
- export declare function cancelAfter(token: CancellationToken, ms: number): void;
15
- export declare function isCancellationRequested(token: CancellationToken): boolean;
16
- export declare function throwIfCancellationRequested(token: CancellationToken): void;
17
- export declare function startChild<T>(computation: IAsync<T>, ms?: number): IAsync<IAsync<T>>;
18
- export declare function awaitPromise<T>(p: Promise<T>): (ctx: IAsyncContext<T>) => void;
19
- export declare function cancellationToken(): (ctx: IAsyncContext<CancellationToken>) => void;
20
- export declare const defaultCancellationToken: CancellationToken;
21
- export declare function catchAsync<T>(work: IAsync<T>): (ctx: IAsyncContext<FSharpChoice$2_$union<T, Error>>) => void;
22
- export declare function fromContinuations<T>(f: (conts: Continuations<T>) => void): (ctx: IAsyncContext<T>) => void;
23
- export declare function ignore<T>(computation: IAsync<T>): (ctx: IAsyncContext<undefined>) => void;
24
- export declare function parallel<T>(computations: Iterable<IAsync<T>>): (ctx: IAsyncContext<Awaited<T>[]>) => void;
25
- export declare function sequential<T>(computations: Iterable<IAsync<T>>): (ctx: IAsyncContext<T[]>) => void;
26
- export declare function sleep(millisecondsDueTime: number): (ctx: IAsyncContext<void>) => void;
27
- export declare function runSynchronously(): never;
28
- export declare function start<T>(computation: IAsync<T>, cancellationToken?: CancellationToken): void;
29
- export declare function startImmediate<T>(computation: IAsync<T>, cancellationToken?: CancellationToken): void;
30
- export declare function startWithContinuations<T>(computation: IAsync<T>, continuation?: Continuation<T> | CancellationToken, exceptionContinuation?: Continuation<any>, cancellationContinuation?: Continuation<any>, cancelToken?: CancellationToken): void;
31
- export declare function startAsPromise<T>(computation: IAsync<T>, cancellationToken?: CancellationToken): Promise<T>;
32
- export default Async;
@@ -1,158 +0,0 @@
1
- import { OperationCanceledError, Trampoline } from "./AsyncBuilder.js";
2
- import { CancellationToken } from "./AsyncBuilder.js";
3
- import { protectedCont } from "./AsyncBuilder.js";
4
- import { protectedBind } from "./AsyncBuilder.js";
5
- import { protectedReturn } from "./AsyncBuilder.js";
6
- import { Choice_makeChoice1Of2, Choice_makeChoice2Of2 } from "./Choice.js";
7
- import { TimeoutException } from "./SystemException.js";
8
- // Implemented just for type references
9
- export class Async {
10
- }
11
- function emptyContinuation(_x) {
12
- // NOP
13
- }
14
- // see AsyncBuilder.Delay
15
- function delay(generator) {
16
- return protectedCont((ctx) => generator()(ctx));
17
- }
18
- // MakeAsync: body:(AsyncActivation<'T> -> AsyncReturn) -> Async<'T>
19
- export function makeAsync(body) {
20
- return body;
21
- }
22
- // Invoke: computation: Async<'T> -> ctxt:AsyncActivation<'T> -> AsyncReturn
23
- export function invoke(computation, ctx) {
24
- return computation(ctx);
25
- }
26
- // CallThenInvoke: ctxt:AsyncActivation<'T> -> result1:'U -> part2:('U -> Async<'T>) -> AsyncReturn
27
- export function callThenInvoke(ctx, result1, part2) {
28
- return part2(result1)(ctx);
29
- }
30
- // Bind: ctxt:AsyncActivation<'T> -> part1:Async<'U> -> part2:('U -> Async<'T>) -> AsyncReturn
31
- export function bind(ctx, part1, part2) {
32
- return protectedBind(part1, part2)(ctx);
33
- }
34
- export function createCancellationToken(arg) {
35
- const token = new CancellationToken(typeof arg === "boolean" ? arg : false);
36
- if (typeof arg === "number") {
37
- setTimeout(() => { token.cancel(); }, arg);
38
- }
39
- return token;
40
- }
41
- export function cancel(token) {
42
- token.cancel();
43
- }
44
- export function cancelAfter(token, ms) {
45
- setTimeout(() => { token.cancel(); }, ms);
46
- }
47
- export function isCancellationRequested(token) {
48
- return token != null && token.isCancelled;
49
- }
50
- export function throwIfCancellationRequested(token) {
51
- if (token != null && token.isCancelled) {
52
- throw new Error("Operation is cancelled");
53
- }
54
- }
55
- function throwAfter(millisecondsDueTime) {
56
- return protectedCont((ctx) => {
57
- let tokenId;
58
- const timeoutId = setTimeout(() => {
59
- ctx.cancelToken.removeListener(tokenId);
60
- ctx.onError(new TimeoutException());
61
- }, millisecondsDueTime);
62
- tokenId = ctx.cancelToken.addListener(() => {
63
- clearTimeout(timeoutId);
64
- ctx.onCancel(new OperationCanceledError());
65
- });
66
- });
67
- }
68
- export function startChild(computation, ms) {
69
- if (ms) {
70
- const computationWithTimeout = protectedBind(parallel2(computation, throwAfter(ms)), xs => protectedReturn(xs[0]));
71
- return startChild(computationWithTimeout);
72
- }
73
- const promise = startAsPromise(computation);
74
- // JS Promises are hot, computation has already started
75
- // but we delay returning the result
76
- return protectedCont((ctx) => protectedReturn(awaitPromise(promise))(ctx));
77
- }
78
- export function awaitPromise(p) {
79
- return fromContinuations((conts) => p.then(conts[0]).catch((err) => (err instanceof OperationCanceledError
80
- ? conts[2] : conts[1])(err)));
81
- }
82
- export function cancellationToken() {
83
- return protectedCont((ctx) => ctx.onSuccess(ctx.cancelToken));
84
- }
85
- export const defaultCancellationToken = new CancellationToken();
86
- export function catchAsync(work) {
87
- return protectedCont((ctx) => {
88
- work({
89
- onSuccess: (x) => ctx.onSuccess(Choice_makeChoice1Of2(x)),
90
- onError: (ex) => ctx.onSuccess(Choice_makeChoice2Of2(ex)),
91
- onCancel: ctx.onCancel,
92
- cancelToken: ctx.cancelToken,
93
- trampoline: ctx.trampoline,
94
- });
95
- });
96
- }
97
- export function fromContinuations(f) {
98
- return protectedCont((ctx) => f([ctx.onSuccess, ctx.onError, ctx.onCancel]));
99
- }
100
- export function ignore(computation) {
101
- return protectedBind(computation, (_x) => protectedReturn(void 0));
102
- }
103
- export function parallel(computations) {
104
- return delay(() => awaitPromise(Promise.all(Array.from(computations, (w) => startAsPromise(w)))));
105
- }
106
- function parallel2(a, b) {
107
- return delay(() => awaitPromise(Promise.all([startAsPromise(a), startAsPromise(b)])));
108
- }
109
- export function sequential(computations) {
110
- function _sequential(computations) {
111
- let pr = Promise.resolve([]);
112
- for (const c of computations) {
113
- pr = pr.then(results => startAsPromise(c).then(r => results.concat([r])));
114
- }
115
- return pr;
116
- }
117
- return delay(() => awaitPromise(_sequential(computations)));
118
- }
119
- export function sleep(millisecondsDueTime) {
120
- return protectedCont((ctx) => {
121
- let tokenId;
122
- const timeoutId = setTimeout(() => {
123
- ctx.cancelToken.removeListener(tokenId);
124
- ctx.onSuccess(void 0);
125
- }, millisecondsDueTime);
126
- tokenId = ctx.cancelToken.addListener(() => {
127
- clearTimeout(timeoutId);
128
- ctx.onCancel(new OperationCanceledError());
129
- });
130
- });
131
- }
132
- export function runSynchronously() {
133
- throw new Error("Asynchronous code cannot be run synchronously in JS");
134
- }
135
- export function start(computation, cancellationToken) {
136
- return startWithContinuations(computation, cancellationToken);
137
- }
138
- export function startImmediate(computation, cancellationToken) {
139
- return start(computation, cancellationToken);
140
- }
141
- export function startWithContinuations(computation, continuation, exceptionContinuation, cancellationContinuation, cancelToken) {
142
- if (typeof continuation !== "function") {
143
- cancelToken = continuation;
144
- continuation = undefined;
145
- }
146
- const trampoline = new Trampoline();
147
- computation({
148
- onSuccess: continuation ? continuation : emptyContinuation,
149
- onError: exceptionContinuation ? exceptionContinuation : emptyContinuation,
150
- onCancel: cancellationContinuation ? cancellationContinuation : emptyContinuation,
151
- cancelToken: cancelToken ? cancelToken : defaultCancellationToken,
152
- trampoline,
153
- });
154
- }
155
- export function startAsPromise(computation, cancellationToken) {
156
- return new Promise((resolve, reject) => startWithContinuations(computation, resolve, reject, reject, cancellationToken ? cancellationToken : defaultCancellationToken));
157
- }
158
- export default Async;
@@ -1,59 +0,0 @@
1
- import { IDisposable } from "./Util.js";
2
- export interface AsyncReplyChannel<Reply> {
3
- reply(value: Reply): void;
4
- }
5
- export type Continuation<T> = (x: T) => void;
6
- export type Continuations<T> = [
7
- Continuation<T>,
8
- Continuation<Error>,
9
- Continuation<OperationCanceledError>
10
- ];
11
- export declare class CancellationToken implements IDisposable {
12
- private _id;
13
- private _cancelled;
14
- private _listeners;
15
- constructor(cancelled?: boolean);
16
- get isCancelled(): boolean;
17
- cancel(): void;
18
- addListener(f: () => void): number;
19
- removeListener(id: number): boolean;
20
- register(f: (state?: any) => void, state?: any): {
21
- Dispose(): void;
22
- };
23
- Dispose(): void;
24
- }
25
- export declare class OperationCanceledError extends Error {
26
- constructor();
27
- }
28
- export declare class Trampoline {
29
- static get maxTrampolineCallCount(): number;
30
- private callCount;
31
- constructor();
32
- incrementAndCheck(): boolean;
33
- hijack(f: () => void): void;
34
- }
35
- export interface IAsyncContext<T> {
36
- onSuccess: Continuation<T>;
37
- onError: Continuation<Error>;
38
- onCancel: Continuation<OperationCanceledError>;
39
- cancelToken: CancellationToken;
40
- trampoline: Trampoline;
41
- }
42
- export type IAsync<T> = (x: IAsyncContext<T>) => void;
43
- export declare function protectedCont<T>(f: IAsync<T>): (ctx: IAsyncContext<T>) => void;
44
- export declare function protectedBind<T, U>(computation: IAsync<T>, binder: (x: T) => IAsync<U>): (ctx: IAsyncContext<U>) => void;
45
- export declare function protectedReturn<T>(value: T): (ctx: IAsyncContext<T>) => void;
46
- export declare class AsyncBuilder {
47
- Bind<T, U>(computation: IAsync<T>, binder: (x: T) => IAsync<U>): (ctx: IAsyncContext<U>) => void;
48
- Combine<T>(computation1: IAsync<void>, computation2: IAsync<T>): (ctx: IAsyncContext<T>) => void;
49
- Delay<T>(generator: () => IAsync<T>): (ctx: IAsyncContext<T>) => void;
50
- For<T>(sequence: Iterable<T>, body: (x: T) => IAsync<void>): IAsync<void>;
51
- Return<T>(value?: T): (ctx: IAsyncContext<T | undefined>) => void;
52
- ReturnFrom<T>(computation: IAsync<T>): IAsync<T>;
53
- TryFinally<T>(computation: IAsync<T>, compensation: () => void): (ctx: IAsyncContext<T>) => void;
54
- TryWith<T>(computation: IAsync<T>, catchHandler: (e: any) => IAsync<T>): (ctx: IAsyncContext<T>) => void;
55
- Using<T extends IDisposable, U>(resource: T, binder: (x: T) => IAsync<U>): (ctx: IAsyncContext<U>) => void;
56
- While(guard: () => boolean, computation: IAsync<void>): IAsync<void>;
57
- Zero(): (ctx: IAsyncContext<void>) => void;
58
- }
59
- export declare const singleton: AsyncBuilder;
@@ -1,183 +0,0 @@
1
- import { ensureErrorOrException } from './Types.js';
2
- export class CancellationToken {
3
- constructor(cancelled = false) {
4
- this._id = 0;
5
- this._cancelled = cancelled;
6
- this._listeners = new Map();
7
- }
8
- get isCancelled() {
9
- return this._cancelled;
10
- }
11
- cancel() {
12
- if (!this._cancelled) {
13
- this._cancelled = true;
14
- for (const [, listener] of this._listeners) {
15
- listener();
16
- }
17
- }
18
- }
19
- addListener(f) {
20
- const id = this._id;
21
- this._listeners.set(this._id++, f);
22
- return id;
23
- }
24
- removeListener(id) {
25
- return this._listeners.delete(id);
26
- }
27
- register(f, state) {
28
- const $ = this;
29
- const id = this.addListener(state == null ? f : () => f(state));
30
- return { Dispose() { $.removeListener(id); } };
31
- }
32
- Dispose() {
33
- // Implement IDisposable for compatibility but do nothing
34
- // According to docs, calling Dispose does not trigger cancellation
35
- // https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtokensource.dispose?view=net-6.0
36
- }
37
- }
38
- export class OperationCanceledError extends Error {
39
- constructor() {
40
- super("The operation was canceled");
41
- Object.setPrototypeOf(this, OperationCanceledError.prototype);
42
- }
43
- }
44
- export class Trampoline {
45
- static get maxTrampolineCallCount() {
46
- return 2000;
47
- }
48
- constructor() {
49
- this.callCount = 0;
50
- }
51
- incrementAndCheck() {
52
- return this.callCount++ > Trampoline.maxTrampolineCallCount;
53
- }
54
- hijack(f) {
55
- this.callCount = 0;
56
- setTimeout(f, 0);
57
- }
58
- }
59
- export function protectedCont(f) {
60
- return (ctx) => {
61
- if (ctx.cancelToken.isCancelled) {
62
- ctx.onCancel(new OperationCanceledError());
63
- }
64
- else if (ctx.trampoline.incrementAndCheck()) {
65
- ctx.trampoline.hijack(() => {
66
- try {
67
- f(ctx);
68
- }
69
- catch (err) {
70
- ctx.onError(ensureErrorOrException(err));
71
- }
72
- });
73
- }
74
- else {
75
- try {
76
- f(ctx);
77
- }
78
- catch (err) {
79
- ctx.onError(ensureErrorOrException(err));
80
- }
81
- }
82
- };
83
- }
84
- export function protectedBind(computation, binder) {
85
- return protectedCont((ctx) => {
86
- computation({
87
- onSuccess: (x) => {
88
- try {
89
- binder(x)(ctx);
90
- }
91
- catch (err) {
92
- ctx.onError(ensureErrorOrException(err));
93
- }
94
- },
95
- onError: ctx.onError,
96
- onCancel: ctx.onCancel,
97
- cancelToken: ctx.cancelToken,
98
- trampoline: ctx.trampoline,
99
- });
100
- });
101
- }
102
- export function protectedReturn(value) {
103
- return protectedCont((ctx) => ctx.onSuccess(value));
104
- }
105
- export class AsyncBuilder {
106
- Bind(computation, binder) {
107
- return protectedBind(computation, binder);
108
- }
109
- Combine(computation1, computation2) {
110
- return this.Bind(computation1, () => computation2);
111
- }
112
- Delay(generator) {
113
- return protectedCont((ctx) => generator()(ctx));
114
- }
115
- For(sequence, body) {
116
- const iter = sequence[Symbol.iterator]();
117
- let cur = iter.next();
118
- return this.While(() => !cur.done, this.Delay(() => {
119
- const res = body(cur.value);
120
- cur = iter.next();
121
- return res;
122
- }));
123
- }
124
- Return(value) {
125
- return protectedReturn(value);
126
- }
127
- ReturnFrom(computation) {
128
- return computation;
129
- }
130
- TryFinally(computation, compensation) {
131
- return protectedCont((ctx) => {
132
- computation({
133
- onSuccess: (x) => {
134
- compensation();
135
- ctx.onSuccess(x);
136
- },
137
- onError: (x) => {
138
- compensation();
139
- ctx.onError(x);
140
- },
141
- onCancel: (x) => {
142
- compensation();
143
- ctx.onCancel(x);
144
- },
145
- cancelToken: ctx.cancelToken,
146
- trampoline: ctx.trampoline,
147
- });
148
- });
149
- }
150
- TryWith(computation, catchHandler) {
151
- return protectedCont((ctx) => {
152
- computation({
153
- onSuccess: ctx.onSuccess,
154
- onCancel: ctx.onCancel,
155
- cancelToken: ctx.cancelToken,
156
- trampoline: ctx.trampoline,
157
- onError: (ex) => {
158
- try {
159
- catchHandler(ex)(ctx);
160
- }
161
- catch (err) {
162
- ctx.onError(ensureErrorOrException(err));
163
- }
164
- },
165
- });
166
- });
167
- }
168
- Using(resource, binder) {
169
- return this.TryFinally(binder(resource), () => resource.Dispose());
170
- }
171
- While(guard, computation) {
172
- if (guard()) {
173
- return this.Bind(computation, () => this.While(guard, computation));
174
- }
175
- else {
176
- return this.Return(void 0);
177
- }
178
- }
179
- Zero() {
180
- return protectedCont((ctx) => ctx.onSuccess(void 0));
181
- }
182
- }
183
- export const singleton = new AsyncBuilder();
@@ -1,115 +0,0 @@
1
- import { FSharpRef } from "./Types.js";
2
- import { int8, uint8, int16, uint16, int32, uint32, float16, float32, float64 } from "./Int32.js";
3
- import { decimal } from "./Decimal.js";
4
- export type int64 = bigint;
5
- export type uint64 = bigint;
6
- export type int128 = bigint;
7
- export type uint128 = bigint;
8
- export type nativeint = bigint;
9
- export type unativeint = bigint;
10
- export declare function isBigInt(x: any): boolean;
11
- export declare function hash(x: bigint): int32;
12
- export declare function equals(x: bigint, y: bigint): boolean;
13
- export declare function compare(x: bigint, y: bigint): int32;
14
- export declare function abs(x: bigint): bigint;
15
- export declare function sign(x: bigint): int32;
16
- export declare function max(x: bigint, y: bigint): bigint;
17
- export declare function min(x: bigint, y: bigint): bigint;
18
- export declare function maxMagnitude(x: bigint, y: bigint): bigint;
19
- export declare function minMagnitude(x: bigint, y: bigint): bigint;
20
- export declare function clamp(x: bigint, min: bigint, max: bigint): bigint;
21
- export declare function add(x: bigint, y: bigint): bigint;
22
- export declare function subtract(x: bigint, y: bigint): bigint;
23
- export declare function multiply(x: bigint, y: bigint): bigint;
24
- export declare function divide(x: bigint, y: bigint): bigint;
25
- export declare function remainder(x: bigint, y: bigint): bigint;
26
- export declare function negate(x: bigint): bigint;
27
- export declare function op_UnaryNegation(x: bigint): bigint;
28
- export declare function op_LogicalNot(x: bigint): bigint;
29
- export declare function op_UnaryPlus(x: bigint): bigint;
30
- export declare function op_Addition(x: bigint, y: bigint): bigint;
31
- export declare function op_Subtraction(x: bigint, y: bigint): bigint;
32
- export declare function op_Multiply(x: bigint, y: bigint): bigint;
33
- export declare function op_Division(x: bigint, y: bigint): bigint;
34
- export declare function op_Modulus(x: bigint, y: bigint): bigint;
35
- export declare function op_RightShift(x: bigint, n: int32): bigint;
36
- export declare function op_LeftShift(x: bigint, n: int32): bigint;
37
- export declare function op_BitwiseAnd(x: bigint, y: bigint): bigint;
38
- export declare function op_BitwiseOr(x: bigint, y: bigint): bigint;
39
- export declare function op_ExclusiveOr(x: bigint, y: bigint): bigint;
40
- export declare function op_LessThan(x: bigint, y: bigint): boolean;
41
- export declare function op_LessThanOrEqual(x: bigint, y: bigint): boolean;
42
- export declare function op_GreaterThan(x: bigint, y: bigint): boolean;
43
- export declare function op_GreaterThanOrEqual(x: bigint, y: bigint): boolean;
44
- export declare function op_Equality(x: bigint, y: bigint): boolean;
45
- export declare function op_Inequality(x: bigint, y: bigint): boolean;
46
- export declare function get_Zero(): bigint;
47
- export declare function get_One(): bigint;
48
- export declare function get_MinusOne(): bigint;
49
- export declare function get_IsZero(x: bigint): boolean;
50
- export declare function get_IsOne(x: bigint): boolean;
51
- export declare function get_IsEven(x: bigint): boolean;
52
- export declare function get_IsPowerOfTwo(x: bigint): boolean;
53
- export declare function get_Sign(x: bigint): int32;
54
- export declare function isNegative(x: bigint): boolean;
55
- export declare function isPositive(x: bigint): boolean;
56
- export declare function isEvenInteger(x: bigint): boolean;
57
- export declare function isOddInteger(x: bigint): boolean;
58
- export declare function isPow2(x: bigint): boolean;
59
- export declare function fromZero(): bigint;
60
- export declare function fromOne(): bigint;
61
- export declare function fromInt8(n: int8): bigint;
62
- export declare function fromUInt8(n: uint8): bigint;
63
- export declare function fromInt16(n: int16): bigint;
64
- export declare function fromUInt16(n: uint16): bigint;
65
- export declare function fromInt32(n: int32): bigint;
66
- export declare function fromUInt32(n: uint32): bigint;
67
- export declare function fromInt64(n: int64): bigint;
68
- export declare function fromUInt64(n: uint64): bigint;
69
- export declare function fromInt128(n: int128): bigint;
70
- export declare function fromUInt128(n: uint128): bigint;
71
- export declare function fromNativeInt(n: nativeint): bigint;
72
- export declare function fromUNativeInt(n: unativeint): bigint;
73
- export declare function fromFloat16(n: float16): bigint;
74
- export declare function fromFloat32(n: float32): bigint;
75
- export declare function fromFloat64(n: float64): bigint;
76
- export declare function fromDecimal(d: decimal): bigint;
77
- export declare function fromBigInt(x: bigint): bigint;
78
- export declare function fromBoolean(b: boolean): bigint;
79
- export declare function fromChar(c: string): bigint;
80
- export declare function fromString(s: string): bigint;
81
- export declare function fromByteArray(bytes: ArrayLike<uint8>): bigint;
82
- export declare function toByteArray(value: bigint): number[];
83
- export declare function toInt8(x: bigint): int8;
84
- export declare function toUInt8(x: bigint): uint8;
85
- export declare function toInt16(x: bigint): int16;
86
- export declare function toUInt16(x: bigint): uint16;
87
- export declare function toInt32(x: bigint): int32;
88
- export declare function toUInt32(x: bigint): uint32;
89
- export declare function toInt64(x: bigint): int64;
90
- export declare function toUInt64(x: bigint): uint64;
91
- export declare function toInt128(x: bigint): int128;
92
- export declare function toUInt128(x: bigint): uint128;
93
- export declare function toNativeInt(x: bigint): nativeint;
94
- export declare function toUNativeInt(x: bigint): unativeint;
95
- export declare function toFloat16(x: bigint): float32;
96
- export declare function toFloat32(x: bigint): float32;
97
- export declare function toFloat64(x: bigint): float64;
98
- export declare function toDecimal(x: bigint): decimal;
99
- export declare function toBigInt(x: bigint): bigint;
100
- export declare function toBoolean(x: bigint): boolean;
101
- export declare function toChar(x: bigint): string;
102
- export declare function toString(x: bigint): string;
103
- export declare function tryParse(s: string, res: FSharpRef<bigint>): boolean;
104
- export declare function parse(s: string): bigint;
105
- export declare function pow(x: bigint, n: int32): bigint;
106
- export declare function modPow(x: bigint, e: bigint, m: bigint): bigint;
107
- export declare function divRem(x: bigint, y: bigint): [bigint, bigint];
108
- export declare function divRem(x: bigint, y: bigint, out: FSharpRef<bigint>): bigint;
109
- export declare function greatestCommonDivisor(x: bigint, y: bigint): bigint;
110
- export declare function getBitLength(x: bigint): int64;
111
- export declare function log2(x: bigint): float64;
112
- export declare function log10(x: bigint): float64;
113
- export declare function ln(x: bigint): float64;
114
- export declare function log(x: bigint, base: float64): float64;
115
- export declare function ilog2(x: bigint): bigint;