@nfdi4plants/arctrl 1.0.7 → 1.2.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.
- package/ARC.js +47 -11
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +30 -18
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +23 -31
- package/ISA/ISA/ArcTypes/ArcTableAux.js +27 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +118 -83
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +6 -6
- package/ISA/ISA/Helper.js +15 -13
- package/ISA/ISA/Identifier.js +1 -1
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +4 -4
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +23 -8
- package/ISA/ISA/JsonTypes/Process.js +13 -13
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +22 -29
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +157 -65
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +136 -24
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +183 -21
- package/ISA/ISA.Json/ArcTypes/CellTable.js +40 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +34 -23
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
- package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
- package/ISA/ISA.Json/ArcTypes/OATable.js +42 -0
- package/ISA/ISA.Json/Assay.js +71 -47
- package/ISA/ISA.Json/Comment.js +31 -35
- package/ISA/ISA.Json/ConverterOptions.js +19 -1
- package/ISA/ISA.Json/Data.js +119 -137
- package/ISA/ISA.Json/Decode.js +51 -36
- package/ISA/ISA.Json/Factor.js +90 -90
- package/ISA/ISA.Json/GEncode.js +31 -6
- package/ISA/ISA.Json/Investigation.js +54 -79
- package/ISA/ISA.Json/Material.js +103 -104
- package/ISA/ISA.Json/Ontology.js +99 -92
- package/ISA/ISA.Json/Person.js +47 -65
- package/ISA/ISA.Json/Process.js +144 -130
- package/ISA/ISA.Json/Protocol.js +144 -105
- package/ISA/ISA.Json/Publication.js +34 -40
- package/ISA/ISA.Json/StringTable.js +44 -0
- package/ISA/ISA.Json/Study.js +70 -96
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +56 -43
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +11 -11
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcAssay.js +100 -88
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +12 -12
- package/ISA/ISA.Spreadsheet/ArcStudy.js +36 -24
- package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +28 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/README.md +20 -3
- package/SemVer.js +6 -6
- package/Templates/Template.Json.js +43 -36
- package/Templates/Template.Spreadsheet.js +12 -12
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +7 -7
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +14 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +24 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +21 -17
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
- package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
- package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js
RENAMED
|
@@ -1,53 +1,63 @@
|
|
|
1
|
-
import { disposeSafe, defaultOf, toIterator, getEnumerator, structuralHash, equals, compare } from "./Util.js";
|
|
1
|
+
import { disposeSafe, defaultOf, toIterator, getEnumerator, structuralHash, equals as equals_1, compare } from "./Util.js";
|
|
2
2
|
import { class_type } from "./Reflection.js";
|
|
3
3
|
import { toArray, empty, singleton, append, enumerateWhile, delay } from "./Seq.js";
|
|
4
|
-
import { initialize, copyTo, fill } from "./Array.js";
|
|
4
|
+
import { setItem, initialize, copyTo, fill, item as item_1 } from "./Array.js";
|
|
5
5
|
import { max } from "./Double.js";
|
|
6
6
|
export class Comparer$1 {
|
|
7
|
-
constructor() {
|
|
7
|
+
constructor(comparison) {
|
|
8
|
+
this.comparison = comparison;
|
|
8
9
|
}
|
|
9
10
|
Compare(x, y) {
|
|
10
|
-
|
|
11
|
+
const _ = this;
|
|
12
|
+
return _.comparison(x, y) | 0;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
export function Comparer$1_$reflection(gen0) {
|
|
14
16
|
return class_type("System.Collections.Generic.Comparer`1", [gen0], Comparer$1);
|
|
15
17
|
}
|
|
16
|
-
export function Comparer$1_$
|
|
17
|
-
return new Comparer$1();
|
|
18
|
+
export function Comparer$1_$ctor_47C913C(comparison) {
|
|
19
|
+
return new Comparer$1(comparison);
|
|
18
20
|
}
|
|
19
21
|
export function Comparer$1_get_Default() {
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
return Comparer$1_$ctor_47C913C(compare);
|
|
23
|
+
}
|
|
24
|
+
export function Comparer$1_Create_47C913C(comparison) {
|
|
25
|
+
return Comparer$1_$ctor_47C913C(comparison);
|
|
26
|
+
}
|
|
27
|
+
export function Comparer$1__Compare_5BDDA0(_, x, y) {
|
|
28
|
+
return _.comparison(x, y);
|
|
25
29
|
}
|
|
26
30
|
export class EqualityComparer$1 {
|
|
27
|
-
constructor() {
|
|
31
|
+
constructor(equals, getHashCode) {
|
|
32
|
+
this.equals = equals;
|
|
33
|
+
this.getHashCode = getHashCode;
|
|
28
34
|
}
|
|
29
35
|
Equals(x, y) {
|
|
30
|
-
|
|
36
|
+
const _ = this;
|
|
37
|
+
return _.equals(x, y);
|
|
31
38
|
}
|
|
32
39
|
GetHashCode(x) {
|
|
33
|
-
|
|
40
|
+
const _ = this;
|
|
41
|
+
return _.getHashCode(x) | 0;
|
|
34
42
|
}
|
|
35
43
|
}
|
|
36
44
|
export function EqualityComparer$1_$reflection(gen0) {
|
|
37
45
|
return class_type("System.Collections.Generic.EqualityComparer`1", [gen0], EqualityComparer$1);
|
|
38
46
|
}
|
|
39
|
-
export function EqualityComparer$1_$
|
|
40
|
-
return new EqualityComparer$1();
|
|
47
|
+
export function EqualityComparer$1_$ctor_Z6EE254AB(equals, getHashCode) {
|
|
48
|
+
return new EqualityComparer$1(equals, getHashCode);
|
|
41
49
|
}
|
|
42
50
|
export function EqualityComparer$1_get_Default() {
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
return EqualityComparer$1_$ctor_Z6EE254AB(equals_1, structuralHash);
|
|
52
|
+
}
|
|
53
|
+
export function EqualityComparer$1_Create_Z6EE254AB(equals, getHashCode) {
|
|
54
|
+
return EqualityComparer$1_$ctor_Z6EE254AB(equals, getHashCode);
|
|
55
|
+
}
|
|
56
|
+
export function EqualityComparer$1__Equals_5BDDA0(_, x, y) {
|
|
57
|
+
return _.equals(x, y);
|
|
58
|
+
}
|
|
59
|
+
export function EqualityComparer$1__GetHashCode_2B595(_, x) {
|
|
60
|
+
return _.getHashCode(x);
|
|
51
61
|
}
|
|
52
62
|
export class Stack$1 {
|
|
53
63
|
constructor(initialContents, initialCount) {
|
|
@@ -58,7 +68,7 @@ export class Stack$1 {
|
|
|
58
68
|
const _ = this;
|
|
59
69
|
return getEnumerator(delay(() => {
|
|
60
70
|
let index = _.count - 1;
|
|
61
|
-
return enumerateWhile(() => (index >= 0), delay(() => append(singleton(_.contents
|
|
71
|
+
return enumerateWhile(() => (index >= 0), delay(() => append(singleton(item_1(index, _.contents)), delay(() => {
|
|
62
72
|
index = ((index - 1) | 0);
|
|
63
73
|
return empty();
|
|
64
74
|
}))));
|
|
@@ -101,16 +111,16 @@ export function Stack$1__get_Count(_) {
|
|
|
101
111
|
}
|
|
102
112
|
export function Stack$1__Pop(_) {
|
|
103
113
|
_.count = ((_.count - 1) | 0);
|
|
104
|
-
return _.
|
|
114
|
+
return item_1(_.count, _.contents);
|
|
105
115
|
}
|
|
106
116
|
export function Stack$1__Peek(_) {
|
|
107
|
-
return _.
|
|
117
|
+
return item_1(_.count - 1, _.contents);
|
|
108
118
|
}
|
|
109
119
|
export function Stack$1__Contains_2B595(_, x) {
|
|
110
120
|
let found = false;
|
|
111
121
|
let i = 0;
|
|
112
122
|
while ((i < _.count) && !found) {
|
|
113
|
-
if (
|
|
123
|
+
if (equals_1(x, item_1(i, _.contents))) {
|
|
114
124
|
found = true;
|
|
115
125
|
}
|
|
116
126
|
else {
|
|
@@ -152,14 +162,14 @@ export function Stack$1__TrimExcess(this$) {
|
|
|
152
162
|
}
|
|
153
163
|
}
|
|
154
164
|
export function Stack$1__ToArray(_) {
|
|
155
|
-
return initialize(_.count, (i) =>
|
|
165
|
+
return initialize(_.count, (i) => item_1((_.count - 1) - i, _.contents));
|
|
156
166
|
}
|
|
157
167
|
export class Queue$1 {
|
|
158
168
|
constructor(initialContents, initialCount) {
|
|
159
169
|
this.contents = initialContents;
|
|
160
170
|
this.count = (initialCount | 0);
|
|
161
171
|
this.head = 0;
|
|
162
|
-
this.tail = (initialCount | 0);
|
|
172
|
+
this.tail = (((initialCount === this.contents.length) ? 0 : initialCount) | 0);
|
|
163
173
|
}
|
|
164
174
|
GetEnumerator() {
|
|
165
175
|
const _ = this;
|
|
@@ -207,7 +217,7 @@ export function Queue$1__Dequeue(_) {
|
|
|
207
217
|
if (_.count === 0) {
|
|
208
218
|
throw new Error("Queue is empty");
|
|
209
219
|
}
|
|
210
|
-
const value = _.
|
|
220
|
+
const value = item_1(_.head, _.contents);
|
|
211
221
|
_.head = (((_.head + 1) % Queue$1__size(_)) | 0);
|
|
212
222
|
_.count = ((_.count - 1) | 0);
|
|
213
223
|
return value;
|
|
@@ -216,7 +226,7 @@ export function Queue$1__Peek(_) {
|
|
|
216
226
|
if (_.count === 0) {
|
|
217
227
|
throw new Error("Queue is empty");
|
|
218
228
|
}
|
|
219
|
-
return _.
|
|
229
|
+
return item_1(_.head, _.contents);
|
|
220
230
|
}
|
|
221
231
|
export function Queue$1__TryDequeue_1F3DB691(this$, result) {
|
|
222
232
|
if (this$.count === 0) {
|
|
@@ -240,7 +250,7 @@ export function Queue$1__Contains_2B595(_, x) {
|
|
|
240
250
|
let found = false;
|
|
241
251
|
let i = 0;
|
|
242
252
|
while ((i < _.count) && !found) {
|
|
243
|
-
if (
|
|
253
|
+
if (equals_1(x, item_1(Queue$1__toIndex_Z524259A4(_, i), _.contents))) {
|
|
244
254
|
found = true;
|
|
245
255
|
}
|
|
246
256
|
else {
|
|
@@ -269,7 +279,7 @@ export function Queue$1__CopyTo_Z3B4C077E(_, target, start) {
|
|
|
269
279
|
try {
|
|
270
280
|
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
271
281
|
const item = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
272
|
-
target
|
|
282
|
+
setItem(target, i, item);
|
|
273
283
|
i = ((i + 1) | 0);
|
|
274
284
|
}
|
|
275
285
|
}
|
|
@@ -293,13 +303,13 @@ export function Queue$1__ensure_Z524259A4(this$, requiredSize) {
|
|
|
293
303
|
copyTo(this$.contents, 0, newBuffer, Queue$1__size(this$) - this$.head, this$.tail);
|
|
294
304
|
}
|
|
295
305
|
this$.head = 0;
|
|
296
|
-
this$.tail = (this$.count | 0);
|
|
297
306
|
this$.contents = newBuffer;
|
|
307
|
+
this$.tail = (((this$.count === Queue$1__size(this$)) ? 0 : this$.count) | 0);
|
|
298
308
|
}
|
|
299
309
|
export function Queue$1__toSeq(this$) {
|
|
300
310
|
return delay(() => {
|
|
301
311
|
let i = 0;
|
|
302
|
-
return enumerateWhile(() => (i < this$.count), delay(() => append(singleton(
|
|
312
|
+
return enumerateWhile(() => (i < this$.count), delay(() => append(singleton(item_1(Queue$1__toIndex_Z524259A4(this$, i), this$.contents)), delay(() => {
|
|
303
313
|
i = ((i + 1) | 0);
|
|
304
314
|
return empty();
|
|
305
315
|
}))));
|
|
@@ -20,11 +20,19 @@ export declare function StringBuilder__Append_4E60E31B(x: StringBuilder, o: any)
|
|
|
20
20
|
export declare function StringBuilder__Append_Z372E4D23(x: StringBuilder, cs: string[]): StringBuilder;
|
|
21
21
|
export declare function StringBuilder__Append_43A65C09(x: StringBuilder, s: StringBuilder): StringBuilder;
|
|
22
22
|
export declare function StringBuilder__AppendFormat_433E080(x: StringBuilder, fmt: string, o: any): StringBuilder;
|
|
23
|
+
export declare function StringBuilder__AppendFormat_Z3B30EC65(x: StringBuilder, fmt: string, o1: any, o2: any): StringBuilder;
|
|
24
|
+
export declare function StringBuilder__AppendFormat_10D165E0(x: StringBuilder, fmt: string, o1: any, o2: any, o3: any): StringBuilder;
|
|
25
|
+
export declare function StringBuilder__AppendFormat_Z17053F5(x: StringBuilder, fmt: string, arr: any[]): StringBuilder;
|
|
23
26
|
export declare function StringBuilder__AppendFormat_Z696D8D1B(x: StringBuilder, provider: any, fmt: string, o: any): StringBuilder;
|
|
27
|
+
export declare function StringBuilder__AppendFormat_26802C9E(x: StringBuilder, provider: any, fmt: string, o1: any, o2: any): StringBuilder;
|
|
28
|
+
export declare function StringBuilder__AppendFormat_Z471ADCBB(x: StringBuilder, provider: any, fmt: string, o1: any, o2: any, o3: any): StringBuilder;
|
|
29
|
+
export declare function StringBuilder__AppendFormat_6C2E3E6E(x: StringBuilder, provider: any, fmt: string, arr: any[]): StringBuilder;
|
|
24
30
|
export declare function StringBuilder__AppendLine(x: StringBuilder): StringBuilder;
|
|
25
31
|
export declare function StringBuilder__AppendLine_Z721C83C5(x: StringBuilder, s: string): StringBuilder;
|
|
32
|
+
export declare function StringBuilder__Clear(x: StringBuilder): StringBuilder;
|
|
33
|
+
export declare function StringBuilder__get_Chars_Z524259A4(x: StringBuilder, index: int32): string;
|
|
34
|
+
export declare function StringBuilder__set_Chars_413E0D0A(x: StringBuilder, index: int32, value: string): void;
|
|
26
35
|
export declare function StringBuilder__Replace_Z766F94C0(x: StringBuilder, oldValue: string, newValue: string): StringBuilder;
|
|
27
36
|
export declare function StringBuilder__Replace_Z384F8060(x: StringBuilder, oldValue: string, newValue: string): StringBuilder;
|
|
28
37
|
export declare function StringBuilder__get_Length(x: StringBuilder): int32;
|
|
29
38
|
export declare function StringBuilder__ToString_Z37302880(x: StringBuilder, firstIndex: int32, length: int32): string;
|
|
30
|
-
export declare function StringBuilder__Clear(x: StringBuilder): StringBuilder;
|
|
@@ -69,10 +69,34 @@ export function StringBuilder__AppendFormat_433E080(x, fmt, o) {
|
|
|
69
69
|
void (x.buf.push(format(fmt, o)));
|
|
70
70
|
return x;
|
|
71
71
|
}
|
|
72
|
+
export function StringBuilder__AppendFormat_Z3B30EC65(x, fmt, o1, o2) {
|
|
73
|
+
void (x.buf.push(format(fmt, o1, o2)));
|
|
74
|
+
return x;
|
|
75
|
+
}
|
|
76
|
+
export function StringBuilder__AppendFormat_10D165E0(x, fmt, o1, o2, o3) {
|
|
77
|
+
void (x.buf.push(format(fmt, o1, o2, o3)));
|
|
78
|
+
return x;
|
|
79
|
+
}
|
|
80
|
+
export function StringBuilder__AppendFormat_Z17053F5(x, fmt, arr) {
|
|
81
|
+
void (x.buf.push(format(fmt, ...arr)));
|
|
82
|
+
return x;
|
|
83
|
+
}
|
|
72
84
|
export function StringBuilder__AppendFormat_Z696D8D1B(x, provider, fmt, o) {
|
|
73
85
|
void (x.buf.push(format(provider, fmt, o)));
|
|
74
86
|
return x;
|
|
75
87
|
}
|
|
88
|
+
export function StringBuilder__AppendFormat_26802C9E(x, provider, fmt, o1, o2) {
|
|
89
|
+
void (x.buf.push(format(provider, fmt, o1, o2)));
|
|
90
|
+
return x;
|
|
91
|
+
}
|
|
92
|
+
export function StringBuilder__AppendFormat_Z471ADCBB(x, provider, fmt, o1, o2, o3) {
|
|
93
|
+
void (x.buf.push(format(provider, fmt, o1, o2, o3)));
|
|
94
|
+
return x;
|
|
95
|
+
}
|
|
96
|
+
export function StringBuilder__AppendFormat_6C2E3E6E(x, provider, fmt, arr) {
|
|
97
|
+
void (x.buf.push(format(provider, fmt, ...arr)));
|
|
98
|
+
return x;
|
|
99
|
+
}
|
|
76
100
|
export function StringBuilder__AppendLine(x) {
|
|
77
101
|
void (x.buf.push("\n"));
|
|
78
102
|
return x;
|
|
@@ -82,6 +106,40 @@ export function StringBuilder__AppendLine_Z721C83C5(x, s) {
|
|
|
82
106
|
void (x.buf.push("\n"));
|
|
83
107
|
return x;
|
|
84
108
|
}
|
|
109
|
+
export function StringBuilder__Clear(x) {
|
|
110
|
+
clear(x.buf);
|
|
111
|
+
return x;
|
|
112
|
+
}
|
|
113
|
+
export function StringBuilder__get_Chars_Z524259A4(x, index) {
|
|
114
|
+
let len = 0;
|
|
115
|
+
let i = -1;
|
|
116
|
+
while (((i + 1) < x.buf.length) && (len < index)) {
|
|
117
|
+
i = ((i + 1) | 0);
|
|
118
|
+
len = ((len + x.buf[i].length) | 0);
|
|
119
|
+
}
|
|
120
|
+
if (((index < 0) ? true : (i < 0)) ? true : (i >= x.buf.length)) {
|
|
121
|
+
throw new Error("Index was outside the bounds of the array");
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
const pos = ((len - index) - 1) | 0;
|
|
125
|
+
return x.buf[i][pos];
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export function StringBuilder__set_Chars_413E0D0A(x, index, value) {
|
|
129
|
+
let len = 0;
|
|
130
|
+
let i = -1;
|
|
131
|
+
while (((i + 1) < x.buf.length) && (len < index)) {
|
|
132
|
+
i = ((i + 1) | 0);
|
|
133
|
+
len = ((len + x.buf[i].length) | 0);
|
|
134
|
+
}
|
|
135
|
+
if (((index < 0) ? true : (i < 0)) ? true : (i >= x.buf.length)) {
|
|
136
|
+
throw new Error("Index was outside the bounds of the array");
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
const pos = ((len - index) - 1) | 0;
|
|
140
|
+
x.buf[i] = ((x.buf[i].slice(0, (pos - 1) + 1) + value) + x.buf[i].slice(pos + 1, x.buf[i].length));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
85
143
|
export function StringBuilder__Replace_Z766F94C0(x, oldValue, newValue) {
|
|
86
144
|
for (let i = x.buf.length - 1; i >= 0; i--) {
|
|
87
145
|
x.buf[i] = replace(x.buf[i], oldValue, newValue);
|
|
@@ -89,10 +147,8 @@ export function StringBuilder__Replace_Z766F94C0(x, oldValue, newValue) {
|
|
|
89
147
|
return x;
|
|
90
148
|
}
|
|
91
149
|
export function StringBuilder__Replace_Z384F8060(x, oldValue, newValue) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
return x;
|
|
150
|
+
const str = replace(toString(x), oldValue, newValue);
|
|
151
|
+
return StringBuilder__Append_Z721C83C5(StringBuilder__Clear(x), str);
|
|
96
152
|
}
|
|
97
153
|
export function StringBuilder__get_Length(x) {
|
|
98
154
|
let len = 0;
|
|
@@ -104,7 +160,3 @@ export function StringBuilder__get_Length(x) {
|
|
|
104
160
|
export function StringBuilder__ToString_Z37302880(x, firstIndex, length) {
|
|
105
161
|
return substring(toString(x), firstIndex, length);
|
|
106
162
|
}
|
|
107
|
-
export function StringBuilder__Clear(x) {
|
|
108
|
-
clear(x.buf);
|
|
109
|
-
return x;
|
|
110
|
-
}
|
|
@@ -0,0 +1,338 @@
|
|
|
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.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sideEffects": false,
|
|
3
|
+
"private": false,
|
|
3
4
|
"type": "module",
|
|
4
|
-
"name": "fable-library",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"name": "@fable-org/fable-library-js",
|
|
6
|
+
"version": "1.1.0",
|
|
6
7
|
"description": "Core library used by F# projects compiled with fable.io",
|
|
7
8
|
"author": "Fable Contributors",
|
|
8
9
|
"license": "MIT",
|
|
@@ -20,4 +21,4 @@
|
|
|
20
21
|
"fsharp",
|
|
21
22
|
"F#"
|
|
22
23
|
]
|
|
23
|
-
}
|
|
24
|
+
}
|