@nfdi4plants/arctrl 1.0.0-beta.1 → 1.0.0-beta.2

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 (285) hide show
  1. package/ARC.js +24 -24
  2. package/Contract/Contract.js +3 -3
  3. package/Contracts/Contracts.ArcAssay.js +3 -3
  4. package/Contracts/Contracts.ArcInvestigation.js +3 -3
  5. package/Contracts/Contracts.ArcStudy.js +3 -3
  6. package/Contracts/Contracts.Git.js +4 -4
  7. package/FileSystem/Commit.js +2 -2
  8. package/FileSystem/FileSystem.js +4 -4
  9. package/FileSystem/FileSystemTree.js +15 -15
  10. package/FileSystem/Path.js +2 -2
  11. package/FileSystemTree.js +1 -1
  12. package/ISA/ISA/ArcTypes/ArcTable.js +20 -20
  13. package/ISA/ISA/ArcTypes/ArcTableAux.js +17 -17
  14. package/ISA/ISA/ArcTypes/ArcTables.js +21 -21
  15. package/ISA/ISA/ArcTypes/ArcTypes.js +64 -64
  16. package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
  17. package/ISA/ISA/ArcTypes/CompositeColumn.js +4 -4
  18. package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
  19. package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
  20. package/ISA/ISA/Builder/Types.js +5 -5
  21. package/ISA/ISA/Fable.js +5 -5
  22. package/ISA/ISA/Helper.js +9 -9
  23. package/ISA/ISA/Identifier.js +2 -2
  24. package/ISA/ISA/JsonTypes/AnnotationValue.js +5 -5
  25. package/ISA/ISA/JsonTypes/Assay.js +26 -26
  26. package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
  27. package/ISA/ISA/JsonTypes/ColumnIndex.js +23 -23
  28. package/ISA/ISA/JsonTypes/Comment.js +3 -3
  29. package/ISA/ISA/JsonTypes/CommentList.js +4 -4
  30. package/ISA/ISA/JsonTypes/Component.js +12 -12
  31. package/ISA/ISA/JsonTypes/Data.js +4 -4
  32. package/ISA/ISA/JsonTypes/DataFile.js +2 -2
  33. package/ISA/ISA/JsonTypes/Factor.js +12 -12
  34. package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
  35. package/ISA/ISA/JsonTypes/Investigation.js +6 -6
  36. package/ISA/ISA/JsonTypes/Material.js +5 -5
  37. package/ISA/ISA/JsonTypes/MaterialAttribute.js +4 -4
  38. package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
  39. package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
  40. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +10 -10
  41. package/ISA/ISA/JsonTypes/OntologySourceReference.js +8 -8
  42. package/ISA/ISA/JsonTypes/Person.js +9 -9
  43. package/ISA/ISA/JsonTypes/Process.js +11 -11
  44. package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
  45. package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
  46. package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
  47. package/ISA/ISA/JsonTypes/ProcessSequence.js +14 -14
  48. package/ISA/ISA/JsonTypes/Protocol.js +6 -6
  49. package/ISA/ISA/JsonTypes/ProtocolParameter.js +4 -4
  50. package/ISA/ISA/JsonTypes/Publication.js +8 -8
  51. package/ISA/ISA/JsonTypes/Sample.js +5 -5
  52. package/ISA/ISA/JsonTypes/Source.js +5 -5
  53. package/ISA/ISA/JsonTypes/Study.js +58 -58
  54. package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
  55. package/ISA/ISA/JsonTypes/Value.js +7 -7
  56. package/ISA/ISA/Regex.js +3 -3
  57. package/ISA/ISA.Json/Assay.js +5 -5
  58. package/ISA/ISA.Json/Comment.js +5 -5
  59. package/ISA/ISA.Json/ConverterOptions.js +1 -1
  60. package/ISA/ISA.Json/Data.js +5 -5
  61. package/ISA/ISA.Json/Decode.js +4 -4
  62. package/ISA/ISA.Json/Factor.js +5 -5
  63. package/ISA/ISA.Json/GEncode.js +3 -3
  64. package/ISA/ISA.Json/Investigation.js +6 -6
  65. package/ISA/ISA.Json/Material.js +5 -5
  66. package/ISA/ISA.Json/Ontology.js +6 -6
  67. package/ISA/ISA.Json/Person.js +10 -10
  68. package/ISA/ISA.Json/Process.js +5 -5
  69. package/ISA/ISA.Json/Protocol.js +6 -6
  70. package/ISA/ISA.Json/Publication.js +4 -4
  71. package/ISA/ISA.Json/Study.js +6 -6
  72. package/ISA/ISA.Json/Validation/Fable.js +6 -6
  73. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +1 -1
  74. package/ISA/ISA.Json/Validation/ValidationResult.js +2 -2
  75. package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +9 -9
  76. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
  77. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +8 -8
  78. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +9 -9
  79. package/ISA/ISA.Spreadsheet/ArcAssay.js +13 -13
  80. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +36 -36
  81. package/ISA/ISA.Spreadsheet/ArcStudy.js +10 -10
  82. package/ISA/ISA.Spreadsheet/CollectionAux.js +7 -7
  83. package/ISA/ISA.Spreadsheet/Metadata/Assays.js +10 -10
  84. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +6 -6
  85. package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +11 -11
  86. package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +7 -7
  87. package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
  88. package/ISA/ISA.Spreadsheet/Metadata/Factors.js +8 -8
  89. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
  90. package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +7 -7
  91. package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
  92. package/ISA/ISA.Spreadsheet/Metadata/Publication.js +9 -9
  93. package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +19 -19
  94. package/ISA/ISA.Spreadsheet/Metadata/Study.js +22 -22
  95. package/README.md +29 -256
  96. package/SemVer.js +7 -7
  97. package/Templates/Template.Json.js +7 -7
  98. package/Templates/Template.Spreadsheet.js +20 -20
  99. package/Templates/Template.Web.js +4 -4
  100. package/Templates/Template.js +7 -7
  101. package/Templates/Templates.js +5 -5
  102. package/WebRequest/WebRequest.js +4 -4
  103. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
  104. package/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.2.2.2}/Fable.Promise.fableproj +3 -4
  105. package/fable_modules/Fable.Promise.2.2.2/Promise.fs +176 -0
  106. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +143 -0
  107. package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs +4 -0
  108. package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs.js +4 -0
  109. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  110. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  111. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Cells/FsCell.fs.js +14 -14
  112. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs.js +8 -8
  113. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs.js +4 -4
  114. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs.js +3 -3
  115. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs.js +2 -2
  116. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs.js +1 -1
  117. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs.js +3 -3
  118. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs.js +3 -3
  119. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs.js +3 -3
  120. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs.js +8 -8
  121. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs.js +4 -4
  122. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs.js +3 -3
  123. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsAddress.fs.js +9 -9
  124. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsColumn.fs.js +3 -3
  125. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsRow.fs.js +3 -3
  126. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs.js +8 -8
  127. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs.js +19 -19
  128. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs.js +3 -3
  129. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs.js +2 -2
  130. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs.js +3 -3
  131. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs.js +3 -3
  132. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs.js +1 -1
  133. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs.js +8 -8
  134. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs.js +7 -7
  135. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs.js +4 -4
  136. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs.js +1 -1
  137. package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
  138. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +26 -26
  139. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +13 -13
  140. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +2 -2
  141. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +6 -6
  142. package/fable_modules/fable-library.4.4.1/CHANGELOG.md +11 -0
  143. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.js +1 -1
  144. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.js +1 -1
  145. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.js +1 -1
  146. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.js +1 -1
  147. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/README.md +2 -2
  148. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.js +64 -64
  149. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.d.ts +20 -0
  150. package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.js +120 -0
  151. package/fable_modules/fable-library.4.4.1/lib/big.d.ts +5 -0
  152. package/fable_modules/project_cracked.json +1 -1
  153. package/package.json +1 -1
  154. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  155. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -104
  156. package/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  157. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -217
  158. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  159. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -19
  160. package/fable_modules/fable-library.4.1.4/lib/big.d.ts +0 -338
  161. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Cells/FsCell.fs +0 -0
  162. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs +0 -0
  163. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs +0 -0
  164. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs +0 -0
  165. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs +0 -0
  166. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs +0 -0
  167. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs +0 -0
  168. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs.js +0 -0
  169. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs +0 -0
  170. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs +0 -0
  171. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs +0 -0
  172. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs +0 -0
  173. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs +0 -0
  174. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs +0 -0
  175. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsAddress.fs +0 -0
  176. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsColumn.fs +0 -0
  177. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsRow.fs +0 -0
  178. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsSpreadsheet.fableproj +0 -0
  179. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs +0 -0
  180. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs +0 -0
  181. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs +0 -0
  182. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs +0 -0
  183. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs +0 -0
  184. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs +0 -0
  185. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs +0 -0
  186. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs +0 -0
  187. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs +0 -0
  188. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs +0 -0
  189. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs +0 -0
  190. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  191. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
  192. /package/fable_modules/{FsSpreadsheet.5.0.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  193. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.d.ts +0 -0
  194. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.js +0 -0
  195. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.d.ts +0 -0
  196. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.js +0 -0
  197. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.d.ts +0 -0
  198. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.js +0 -0
  199. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.d.ts +0 -0
  200. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.js +0 -0
  201. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.d.ts +0 -0
  202. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.js +0 -0
  203. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.d.ts +0 -0
  204. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.js +0 -0
  205. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.d.ts +0 -0
  206. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.js +0 -0
  207. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.d.ts +0 -0
  208. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.js +0 -0
  209. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.d.ts +0 -0
  210. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.js +0 -0
  211. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.d.ts +0 -0
  212. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.js +0 -0
  213. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.d.ts +0 -0
  214. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.js +0 -0
  215. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.d.ts +0 -0
  216. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.d.ts +0 -0
  217. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.d.ts +0 -0
  218. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.js +0 -0
  219. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.d.ts +0 -0
  220. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.js +0 -0
  221. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.d.ts +0 -0
  222. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.js +0 -0
  223. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.d.ts +0 -0
  224. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.js +0 -0
  225. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.d.ts +0 -0
  226. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.js +0 -0
  227. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.d.ts +0 -0
  228. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.js +0 -0
  229. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.d.ts +0 -0
  230. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.d.ts +0 -0
  231. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.js +0 -0
  232. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.d.ts +0 -0
  233. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.d.ts +0 -0
  234. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.js +0 -0
  235. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.d.ts +0 -0
  236. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.js +0 -0
  237. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.d.ts +0 -0
  238. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.js +0 -0
  239. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.d.ts +0 -0
  240. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.js +0 -0
  241. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.d.ts +0 -0
  242. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.js +0 -0
  243. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.d.ts +0 -0
  244. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.js +0 -0
  245. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.d.ts +0 -0
  246. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.js +0 -0
  247. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.d.ts +0 -0
  248. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.js +0 -0
  249. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.d.ts +0 -0
  250. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.js +0 -0
  251. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.d.ts +0 -0
  252. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.js +0 -0
  253. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.d.ts +0 -0
  254. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.js +0 -0
  255. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.d.ts +0 -0
  256. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.js +0 -0
  257. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.d.ts +0 -0
  258. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.js +0 -0
  259. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.d.ts +0 -0
  260. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.js +0 -0
  261. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.d.ts +0 -0
  262. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.js +0 -0
  263. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.d.ts +0 -0
  264. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.d.ts +0 -0
  265. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.js +0 -0
  266. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.d.ts +0 -0
  267. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.js +0 -0
  268. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.d.ts +0 -0
  269. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.js +0 -0
  270. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.d.ts +0 -0
  271. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.js +0 -0
  272. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.d.ts +0 -0
  273. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.js +0 -0
  274. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.d.ts +0 -0
  275. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.js +0 -0
  276. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.d.ts +0 -0
  277. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.js +0 -0
  278. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.d.ts +0 -0
  279. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.js +0 -0
  280. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.d.ts +0 -0
  281. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.js +0 -0
  282. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.d.ts +0 -0
  283. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.js +0 -0
  284. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/lib/big.js +0 -0
  285. /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/package.json +0 -0
@@ -1,217 +0,0 @@
1
- import { Result_MapError, Result_Map, FSharpResult$2 } from "../fable-library.4.1.4/Choice.js";
2
- import { class_type } from "../fable-library.4.1.4/Reflection.js";
3
- import { disposeSafe, getEnumerator } from "../fable-library.4.1.4/Util.js";
4
-
5
- /**
6
- * This is an identity function, it calls the given function and return the promise value untouched.
7
- * <example>
8
- * <code lang="fsharp">
9
- * fetchUser ()
10
- * |> Promise.tap (fun user ->
11
- * // Do something
12
- * console.log "The user has been received"
13
- * )
14
- * |> Promise.map (fun user ->
15
- * // user value is available here untouched
16
- * )
17
- * </code>
18
- * </example>
19
- */
20
- export function tap(fn, a) {
21
- return a.then((x) => {
22
- fn(x);
23
- return x;
24
- });
25
- }
26
-
27
- /**
28
- * Map the <c>Promise</c> result into a <c>Result</c> type.
29
- * <example>
30
- * <code lang="fsharp">
31
- * Success example
32
- * Promise.lift 42
33
- * |> Promise.result
34
- * |> Promise.map (fun value ->
35
- * // value = Ok 42
36
- * )
37
- *
38
- * // Fail example
39
- * Promise.reject "Invalid value"
40
- * |> Promise.result
41
- * |> Promise.map (fun value ->
42
- * // value = Error "Invalid value"
43
- * )
44
- * </code>
45
- * </example>
46
- */
47
- export function result(a) {
48
- return a.then((arg) => (new FSharpResult$2(0, [arg]))).catch((arg_1) => (new FSharpResult$2(1, [arg_1])));
49
- }
50
-
51
- /**
52
- * Evaluates to `myPromise |> Promise.map (Result.map fn)`
53
- * <example>
54
- * <code lang="fsharp">
55
- * Promise.lift 42
56
- * |> Promise.result
57
- * |> Promise.mapResult (fun value ->
58
- * value + 10
59
- * )
60
- * |> Promise.map (fun value ->
61
- * // value = Ok 52
62
- * )
63
- * </code>
64
- * </example>
65
- */
66
- export function mapResult(fn, a) {
67
- return a.then((result_1) => Result_Map(fn, result_1));
68
- }
69
-
70
- /**
71
- * Transform the success part of a result promise into another promise.
72
- * <example>
73
- * <code lang="fsharp">
74
- * let multiplyBy2 (value : int) =
75
- * Promise.create (fun resolve reject ->
76
- * resolve (value * 2)
77
- * )
78
- *
79
- * Promise.lift 42
80
- * |> Promise.result
81
- * |> Promise.bindResult (fun value ->
82
- * multiplyBy2 value
83
- * )
84
- * |> Promise.map (fun value ->
85
- * // value = Ok 84
86
- * )
87
- * </code>
88
- * </example>
89
- */
90
- export function bindResult(fn, a) {
91
- return a.then((a_1) => {
92
- if (a_1.tag === 1) {
93
- return Promise.resolve(new FSharpResult$2(1, [a_1.fields[0]]));
94
- }
95
- else {
96
- const pr = fn(a_1.fields[0]);
97
- return pr.then((arg) => (new FSharpResult$2(0, [arg])));
98
- }
99
- });
100
- }
101
-
102
- /**
103
- * Evaluates to <c>myPromise |> Promise.map (Result.map fn)</c>
104
- * <example>
105
- * <code lang="fsharp">
106
- * Promise.reject -1
107
- * |> Promise.result
108
- * |> Promise.mapResultError (fun value ->
109
- * $"%s{value} is not a valid value"
110
- * )
111
- * |> Promise.map (fun value ->
112
- * // value = Error "-1 is not a valid value"
113
- * )
114
- * </code>
115
- * </example>
116
- */
117
- export function mapResultError(fn, a) {
118
- return a.then((result_1) => Result_MapError(fn, result_1));
119
- }
120
-
121
- export class PromiseBuilder {
122
- constructor() {
123
- }
124
- }
125
-
126
- export function PromiseBuilder_$reflection() {
127
- return class_type("Promise.PromiseBuilder", void 0, PromiseBuilder);
128
- }
129
-
130
- export function PromiseBuilder_$ctor() {
131
- return new PromiseBuilder();
132
- }
133
-
134
- export function PromiseBuilder__For_1565554B(_, seq, body) {
135
- let pr;
136
- let p = Promise.resolve(void 0);
137
- const enumerator = getEnumerator(seq);
138
- try {
139
- while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
140
- const a = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
141
- p = ((pr = p, pr.then(() => body(a))));
142
- }
143
- }
144
- finally {
145
- disposeSafe(enumerator);
146
- }
147
- return p;
148
- }
149
-
150
- export function PromiseBuilder__While_2044D34(this$, guard, p) {
151
- if (guard()) {
152
- return p.then(() => PromiseBuilder__While_2044D34(this$, guard, p));
153
- }
154
- else {
155
- return Promise.resolve(void 0);
156
- }
157
- }
158
-
159
- export function PromiseBuilder__TryFinally_7D49A2FD(_, p, compensation) {
160
- return p.then((x) => {
161
- compensation();
162
- return x;
163
- }).catch((er) => {
164
- compensation();
165
- throw er;
166
- });
167
- }
168
-
169
- export function PromiseBuilder__Delay_62FBFDE1(_, generator) {
170
- return {
171
- then: (onSuccess, onError) => {
172
- try {
173
- return generator().then(onSuccess, onError);
174
- }
175
- catch (er) {
176
- if (onError == null) {
177
- return Promise.reject(er);
178
- }
179
- else {
180
- try {
181
- const a = onError(er);
182
- return Promise.resolve(a);
183
- }
184
- catch (er_1) {
185
- return Promise.reject(er_1);
186
- }
187
- }
188
- }
189
- },
190
- catch: (onError_1) => {
191
- try {
192
- return generator().catch(onError_1);
193
- }
194
- catch (er_2) {
195
- try {
196
- const a_1 = onError_1(er_2);
197
- return Promise.resolve(a_1);
198
- }
199
- catch (er_3) {
200
- return Promise.reject(er_3);
201
- }
202
- }
203
- },
204
- };
205
- }
206
-
207
- export function PromiseBuilder__Run_212F1D4B(_, p) {
208
- return p.then((x) => x);
209
- }
210
-
211
- export function PromiseBuilder__Using_74F7E79D(this$, resource, binder) {
212
- return PromiseBuilder__TryFinally_7D49A2FD(this$, binder(resource), () => {
213
- let copyOfStruct = resource;
214
- disposeSafe(copyOfStruct);
215
- });
216
- }
217
-
@@ -1,31 +0,0 @@
1
- [<AutoOpen>]
2
- module PromiseImpl
3
-
4
- let promise = Promise.PromiseBuilder()
5
-
6
- [<RequireQualifiedAccess>]
7
- module SettledValue =
8
-
9
- /// <summary>
10
- /// Helper functionm to convert a settled result into an F# result
11
- /// </summary>
12
- /// <param name="p">The settled result</param>
13
- /// <typeparam name="'T"></typeparam>
14
- /// <returns>The F# result</returns>
15
- /// <example>
16
- /// <code lang="fsharp">
17
- /// Promise.allSettled [success; rejection]
18
- /// |> Promise.iter (fun results ->
19
- /// for result in results do
20
- /// match SettledValue.toResult result with
21
- /// | Ok value ->
22
- /// printfn "Success: %A" value
23
- /// | Error err ->
24
- /// eprintfn "Error: %O" err
25
- /// )
26
- /// </code>
27
- /// </example>
28
- let toResult (p: Promise.SettledValue<'T>) =
29
- match p.status with
30
- | Promise.Fulfilled -> Ok p.value.Value
31
- | Promise.Rejected -> Error p.reason.Value
@@ -1,19 +0,0 @@
1
- import { PromiseBuilder_$ctor } from "./Promise.fs.js";
2
- import { value } from "../fable-library.4.1.4/Option.js";
3
- import { FSharpResult$2 } from "../fable-library.4.1.4/Choice.js";
4
-
5
- export const promise = PromiseBuilder_$ctor();
6
-
7
- /**
8
- * Helper functionm to convert a settled result into an F# result
9
- */
10
- export function SettledValue_toResult(p) {
11
- const matchValue = p.status;
12
- if (matchValue === "rejected") {
13
- return new FSharpResult$2(1, [value(p.reason)]);
14
- }
15
- else {
16
- return new FSharpResult$2(0, [value(p.value)]);
17
- }
18
- }
19
-
@@ -1,338 +0,0 @@
1
- // Type definitions for big.js 6.0
2
- // Project: https://github.com/MikeMcl/big.js/
3
- // Definitions by: Steve Ognibene <https://github.com/nycdotnet>
4
- // Roman Nuritdinov (Ky6uk) <https://github.com/Ky6uk>
5
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
-
7
- import { CustomNumeric } from "../Numeric.js";
8
-
9
- export type BigSource = number | string | Big;
10
-
11
- export const enum Comparison {
12
- GT = 1,
13
- EQ = 0,
14
- LT = -1,
15
- }
16
-
17
- export const enum RoundingMode {
18
- /**
19
- * Rounds towards zero.
20
- * I.e. truncate, no rounding.
21
- */
22
- RoundDown = 0,
23
- /**
24
- * Rounds towards nearest neighbour.
25
- * If equidistant, rounds away from zero.
26
- */
27
- RoundHalfUp = 1,
28
- /**
29
- * Rounds towards nearest neighbour.
30
- * If equidistant, rounds towards even neighbour.
31
- */
32
- RoundHalfEven = 2,
33
- /**
34
- * Rounds away from zero.
35
- */
36
- RoundUp = 3,
37
- }
38
-
39
- export interface BigConstructor {
40
- /**
41
- * Returns a new instance of a Big number object
42
- *
43
- * String values may be in exponential, as well as normal (non-exponential) notation.
44
- * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.
45
- * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.
46
- * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.
47
- *
48
- * @throws `NaN` on an invalid value.
49
- */
50
- new (value: BigSource): Big;
51
-
52
- /**
53
- * Returns a new instance of a Big number object
54
- *
55
- * String values may be in exponential, as well as normal (non-exponential) notation.
56
- * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.
57
- * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.
58
- * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.
59
- *
60
- * @throws `NaN` on an invalid value.
61
- */
62
- (value: BigSource): Big;
63
-
64
- /**
65
- * Create an additional Big number constructor
66
- *
67
- * Values created with the returned constructor will have a separate set of configuration values.
68
- * This can be used to create Big objects with different DP and RM values.
69
- * Big numbers created by different constructors can be used together in operations, and it is the DP and RM setting of the Big number that an operation is called upon that will apply.
70
- * In the interest of memory efficiency, all Big number constructors share the same prototype object,
71
- * so while the DP and RM (and any other own properties) of a constructor are isolated and untouchable by another, its prototype methods are not.
72
- */
73
- (): BigConstructor;
74
-
75
- /**
76
- * The maximum number of decimal places of the results of operations involving division.
77
- * It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative.
78
- *
79
- * 0 to 1e+6 inclusive
80
- * Default value: 20
81
- */
82
- DP: number;
83
- /**
84
- * The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision.
85
- * Default value: 1
86
- */
87
- RM: number;
88
- /**
89
- * The negative exponent value at and below which toString returns exponential notation.
90
- *
91
- * -1e+6 to 0 inclusive
92
- * Default value: -7
93
- */
94
- NE: number;
95
- /**
96
- * The positive exponent value at and above which toString returns exponential notation.
97
- *
98
- * 0 to 1e+6 inclusive
99
- * Default value: 21
100
- */
101
- PE: number;
102
- }
103
-
104
- export interface Big extends CustomNumeric {
105
- /** Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number. */
106
- abs(): Big;
107
- /**
108
- * Returns a Big number whose value is the value of this Big number plus n - alias for .plus().
109
- *
110
- * @throws `NaN` if n is invalid.
111
- */
112
- add(n: BigSource): Big;
113
- /**
114
- * Compare the values.
115
- *
116
- * @throws `NaN` if n is invalid.
117
- */
118
- cmp(n: BigSource): Comparison;
119
- /**
120
- * Returns a Big number whose value is the value of this Big number divided by n.
121
- *
122
- * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
123
- *
124
- * @throws `NaN` if n is invalid.
125
- * @throws `±Infinity` on division by zero.
126
- * @throws `NaN` on division of zero by zero.
127
- */
128
- div(n: BigSource): Big;
129
- /**
130
- * Returns true if the value of this Big equals the value of n, otherwise returns false.
131
- *
132
- * @throws `NaN` if n is invalid.
133
- */
134
- eq(n: BigSource): boolean;
135
- /**
136
- * Returns true if the value of this Big is greater than the value of n, otherwise returns false.
137
- *
138
- * @throws `NaN` if n is invalid.
139
- */
140
- gt(n: BigSource): boolean;
141
- /**
142
- * Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false.
143
- *
144
- * @throws `NaN` if n is invalid.
145
- */
146
- gte(n: BigSource): boolean;
147
- /**
148
- * Returns true if the value of this Big is less than the value of n, otherwise returns false.
149
- *
150
- * @throws `NaN` if n is invalid.
151
- */
152
- lt(n: BigSource): boolean;
153
- /**
154
- * Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false.
155
- *
156
- * @throws `NaN` if n is invalid.
157
- */
158
- lte(n: BigSource): boolean;
159
- /**
160
- * Returns a Big number whose value is the value of this Big number minus n.
161
- *
162
- * @throws `NaN` if n is invalid.
163
- */
164
- minus(n: BigSource): Big;
165
- /**
166
- * Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n.
167
- *
168
- * The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method.
169
- *
170
- * @throws `NaN` if n is negative or otherwise invalid.
171
- */
172
- mod(n: BigSource): Big;
173
- /**
174
- * Returns a Big number whose value is the value of this Big number times n - alias for .times().
175
- *
176
- * @throws `NaN` if n is invalid.
177
- */
178
- mul(n: BigSource): Big;
179
- /**
180
- * Returns a Big number whose value is the value of this Big number plus n.
181
- *
182
- * @throws `NaN` if n is invalid.
183
- */
184
- plus(n: BigSource): Big;
185
- /**
186
- * Returns a Big number whose value is the value of this Big number raised to the power exp.
187
- *
188
- * If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
189
- *
190
- * @param exp The power to raise the number to, -1e+6 to 1e+6 inclusive
191
- * @throws `!pow!` if exp is invalid.
192
- *
193
- * Note: High value exponents may cause this method to be slow to return.
194
- */
195
- pow(exp: number): Big;
196
- /**
197
- * Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places.
198
- *
199
- * @param dp Decimal places, 0 to 1e+6 inclusive
200
- * @param rm The rounding mode, one of the RoundingMode enumeration values
201
- * @throws `!round!` if dp is invalid.
202
- * @throws `!Big.RM!` if rm is invalid.
203
- */
204
- round(dp?: number, rm?: RoundingMode): Big;
205
- /**
206
- * Returns a Big number whose value is the square root of this Big number.
207
- *
208
- * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
209
- *
210
- * @throws `NaN` if this Big number is negative.
211
- */
212
- sqrt(): Big;
213
- /**
214
- * Returns a Big number whose value is the value of this Big number minus n - alias for .minus().
215
- *
216
- * @throws `NaN` if n is invalid.
217
- */
218
- sub(n: BigSource): Big;
219
- /**
220
- * Returns a Big number whose value is the value of this Big number times n.
221
- *
222
- * @throws `NaN` if n is invalid.
223
- */
224
- times(n: BigSource): Big;
225
- /**
226
- * Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp.
227
- *
228
- * If the value of this Big number in exponential notation has more digits to the right of the decimal point than is specified by dp,
229
- * the return value will be rounded to dp decimal places using rounding mode Big.RM.
230
- *
231
- * If the value of this Big number in exponential notation has fewer digits to the right of the decimal point than is specified by dp, the return value will be appended with zeros accordingly.
232
- *
233
- * If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly.
234
- *
235
- * @param dp Decimal places, 0 to 1e+6 inclusive
236
- * @throws `!toFix!` if dp is invalid.
237
- */
238
- toExponential(dp?: number): string;
239
- /**
240
- * Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp.
241
- *
242
- * If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by dp,
243
- * the return value will be rounded to dp decimal places using rounding mode Big.RM.
244
- *
245
- * If the value of this Big number in normal notation has fewer fraction digits then is specified by dp, the return value will be appended with zeros accordingly.
246
- *
247
- * Unlike Number.prototype.toFixed, which returns exponential notation if a number is greater or equal to 1021, this method will always return normal notation.
248
- *
249
- * If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation.
250
- * This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places.
251
- *
252
- * @param dp Decimal places, 0 to 1e+6 inclusive
253
- * @throws `!toFix!` if dp is invalid.
254
- */
255
- toFixed(dp?: number): string;
256
- /**
257
- * Returns a string representing the value of this Big number to the specified number of significant digits sd.
258
- *
259
- * If the value of this Big number has more digits than is specified by sd, the return value will be rounded to sd significant digits using rounding mode Big.RM.
260
- *
261
- * If the value of this Big number has fewer digits than is specified by sd, the return value will be appended with zeros accordingly.
262
- *
263
- * If sd is less than the number of digits necessary to represent the integer part of the value in normal notation, then exponential notation is used.
264
- *
265
- * If sd is omitted, or is null or undefined, then the return value is the same as .toString().
266
- *
267
- * @param sd Significant digits, 1 to 1e+6 inclusive
268
- * @throws `!toPre!` if sd is invalid.
269
- */
270
- toPrecision(sd?: number): string;
271
- /**
272
- * Returns a string representing the value of this Big number.
273
- *
274
- * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.
275
- *
276
- * The point at which toString returns exponential rather than normal notation can be adjusted by changing
277
- * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.
278
- */
279
- toString(): string;
280
- /**
281
- * Returns a primitive number representing the value of this Big number.
282
- *
283
- * If Big.strict is true an error will be thrown if toNumber is called on a Big number which cannot be converted to a primitive number without a loss of precision.
284
- *
285
- * @since 6.0
286
- */
287
- toNumber(): number;
288
- /**
289
- * Returns a string representing the value of this Big number.
290
- *
291
- * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.
292
- *
293
- * The point at which toString returns exponential rather than normal notation can be adjusted by changing
294
- * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.
295
- */
296
- valueOf(): string;
297
- /**
298
- * Returns a string representing the value of this Big number.
299
- *
300
- * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.
301
- *
302
- * The point at which toString returns exponential rather than normal notation can be adjusted by changing
303
- * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.
304
- */
305
- toJSON(): string;
306
- /**
307
- * Returns an array of single digits
308
- */
309
- c: number[];
310
- /**
311
- * Returns the exponent, Integer, -1e+6 to 1e+6 inclusive
312
- */
313
- e: number;
314
- /**
315
- * Returns the sign, -1 or 1
316
- */
317
- s: number;
318
- }
319
-
320
- // We want the exported symbol 'Big' to represent two things:
321
- // - The Big interface, when used in a type context.
322
- // - The BigConstructor instance, when used in a value context.
323
- export const Big: BigConstructor;
324
-
325
- // The default export is the same as type/value combo symbol 'Big'.
326
- export default Big;
327
-
328
- // If you pull in big.js via a <script> tag, the global symbol 'Big' is automatically defined.
329
- // To let TypeScript know that, add this to your project's global types file, e.g. "types.d.ts":
330
- //
331
- // import BigJs from 'big.js';
332
- // declare global {
333
- // const Big = BigJs;
334
- // type Big = BigJs;
335
- // }
336
- //
337
- // There is a way to have TypeScript know to do this automatically (using "export as namespace"),
338
- // but I couldn't get it working correctly.