typia 5.3.11 → 5.3.12-dev.20240118
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/lib/TypeGuardError.js +4 -1
- package/lib/TypeGuardError.js.map +1 -1
- package/lib/executable/TypiaGenerateWizard.js +24 -23
- package/lib/executable/TypiaGenerateWizard.js.map +1 -1
- package/lib/executable/TypiaPatchWizard.js +9 -9
- package/lib/executable/TypiaPatchWizard.js.map +1 -1
- package/lib/executable/TypiaSetupWizard.js +29 -20
- package/lib/executable/TypiaSetupWizard.js.map +1 -1
- package/lib/executable/setup/ArgumentParser.js +5 -5
- package/lib/executable/setup/ArgumentParser.js.map +1 -1
- package/lib/executable/setup/PackageManager.js +8 -8
- package/lib/executable/setup/PackageManager.js.map +1 -1
- package/lib/executable/setup/PluginConfigurator.js +5 -4
- package/lib/executable/setup/PluginConfigurator.js.map +1 -1
- package/lib/executable/typia.js +21 -21
- package/lib/executable/typia.js.map +1 -1
- package/lib/factories/CommentFactory.js +2 -0
- package/lib/factories/CommentFactory.js.map +1 -1
- package/lib/factories/IdentifierFactory.js +2 -0
- package/lib/factories/IdentifierFactory.js.map +1 -1
- package/lib/factories/LiteralFactory.js +1 -0
- package/lib/factories/LiteralFactory.js.map +1 -1
- package/lib/factories/MetadataCollection.js +19 -1
- package/lib/factories/MetadataCollection.js.map +1 -1
- package/lib/factories/MetadataCommentTagFactory.js +19 -0
- package/lib/factories/MetadataCommentTagFactory.js.map +1 -1
- package/lib/factories/MetadataFactory.js +3 -0
- package/lib/factories/MetadataFactory.js.map +1 -1
- package/lib/factories/MetadataTypeTagFactory.js +25 -3
- package/lib/factories/MetadataTypeTagFactory.js.map +1 -1
- package/lib/factories/ProtobufFactory.js +39 -0
- package/lib/factories/ProtobufFactory.js.map +1 -1
- package/lib/factories/TypeFactory.js +9 -0
- package/lib/factories/TypeFactory.js.map +1 -1
- package/lib/factories/internal/metadata/emend_metadata_atomics.js +3 -0
- package/lib/factories/internal/metadata/emend_metadata_atomics.js.map +1 -1
- package/lib/factories/internal/metadata/emplace_metadata_alias.js +2 -0
- package/lib/factories/internal/metadata/emplace_metadata_alias.js.map +1 -1
- package/lib/factories/internal/metadata/emplace_metadata_array_type.js +2 -0
- package/lib/factories/internal/metadata/emplace_metadata_array_type.js.map +1 -1
- package/lib/factories/internal/metadata/emplace_metadata_object.js +15 -0
- package/lib/factories/internal/metadata/emplace_metadata_object.js.map +1 -1
- package/lib/factories/internal/metadata/emplace_metadata_tuple.js +4 -0
- package/lib/factories/internal/metadata/emplace_metadata_tuple.js.map +1 -1
- package/lib/factories/internal/metadata/explore_metadata.js +2 -0
- package/lib/factories/internal/metadata/explore_metadata.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata.js +2 -0
- package/lib/factories/internal/metadata/iterate_metadata.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_alias.js +1 -0
- package/lib/factories/internal/metadata/iterate_metadata_alias.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_atomic.js +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_atomic.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_intersection.js +7 -0
- package/lib/factories/internal/metadata/iterate_metadata_intersection.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_object.js +10 -0
- package/lib/factories/internal/metadata/iterate_metadata_object.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_sort.js +3 -0
- package/lib/factories/internal/metadata/iterate_metadata_sort.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_template.js +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_template.js.map +1 -1
- package/lib/functional/$HeadersReader/$HeadersReader.d.ts +4 -0
- package/lib/functional/$HeadersReader/$HeadersReader.js +36 -0
- package/lib/functional/$HeadersReader/$HeadersReader.js.map +1 -0
- package/lib/functional/$HeadersReader/index.d.ts +1 -0
- package/lib/functional/$HeadersReader/index.js +28 -0
- package/lib/functional/$HeadersReader/index.js.map +1 -0
- package/lib/functional/$ParameterReader/$ParameterReader.d.ts +4 -0
- package/lib/functional/$ParameterReader/$ParameterReader.js +36 -0
- package/lib/functional/$ParameterReader/$ParameterReader.js.map +1 -0
- package/lib/functional/$ParameterReader/index.d.ts +1 -0
- package/lib/functional/$ParameterReader/index.js +28 -0
- package/lib/functional/$ParameterReader/index.js.map +1 -0
- package/lib/functional/$ProtobufReader.js +13 -11
- package/lib/functional/$ProtobufReader.js.map +1 -1
- package/lib/functional/$ProtobufSizer.js +28 -13
- package/lib/functional/$ProtobufSizer.js.map +1 -1
- package/lib/functional/$ProtobufWriter.js +11 -9
- package/lib/functional/$ProtobufWriter.js.map +1 -1
- package/lib/functional/$QueryReader/$QueryReader.d.ts +6 -0
- package/lib/functional/$QueryReader/$QueryReader.js +63 -0
- package/lib/functional/$QueryReader/$QueryReader.js.map +1 -0
- package/lib/functional/$QueryReader/index.d.ts +1 -0
- package/lib/functional/$QueryReader/index.js +28 -0
- package/lib/functional/$QueryReader/index.js.map +1 -0
- package/lib/functional/$dictionary.js +3 -0
- package/lib/functional/$dictionary.js.map +1 -1
- package/lib/functional/$guard.js +20 -0
- package/lib/functional/$guard.js.map +1 -1
- package/lib/functional/$string.js +18 -2
- package/lib/functional/$string.js.map +1 -1
- package/lib/functional/$tail.js +3 -0
- package/lib/functional/$tail.js.map +1 -1
- package/lib/functional/$throws.d.ts +2 -0
- package/lib/functional/$throws.js +22 -0
- package/lib/functional/$throws.js.map +1 -0
- package/lib/functional/$varint.js +2 -1
- package/lib/functional/$varint.js.map +1 -1
- package/lib/functional/$zigzag.js +2 -0
- package/lib/functional/$zigzag.js.map +1 -1
- package/lib/functional/Namespace/http.d.ts +6 -0
- package/lib/functional/Namespace/http.js +13 -0
- package/lib/functional/Namespace/http.js.map +1 -0
- package/lib/functional/Namespace/index.d.ts +29 -0
- package/lib/functional/Namespace/index.js +84 -0
- package/lib/functional/Namespace/index.js.map +1 -0
- package/lib/functional/Namespace/json.d.ts +9 -0
- package/lib/functional/Namespace/json.js +23 -0
- package/lib/functional/Namespace/json.js.map +1 -0
- package/lib/functional/Namespace/misc.d.ts +11 -0
- package/lib/functional/Namespace/misc.js +22 -0
- package/lib/functional/Namespace/misc.js.map +1 -0
- package/lib/functional/Namespace/notations.d.ts +18 -0
- package/lib/functional/Namespace/notations.js +26 -0
- package/lib/functional/Namespace/notations.js.map +1 -0
- package/lib/functional/Namespace/protobuf.d.ts +17 -0
- package/lib/functional/Namespace/protobuf.js +25 -0
- package/lib/functional/Namespace/protobuf.js.map +1 -0
- package/lib/functional/is.js +14 -0
- package/lib/functional/is.js.map +1 -0
- package/lib/http.d.ts +150 -36
- package/lib/http.js +149 -51
- package/lib/http.js.map +1 -1
- package/lib/json.d.ts +119 -27
- package/lib/json.js +108 -32
- package/lib/json.js.map +1 -1
- package/lib/misc.d.ts +130 -30
- package/lib/misc.js +132 -39
- package/lib/misc.js.map +1 -1
- package/lib/module.d.ts +125 -36
- package/lib/module.js +94 -37
- package/lib/module.js.map +1 -1
- package/lib/notations.d.ts +309 -45
- package/lib/notations.js +187 -67
- package/lib/notations.js.map +1 -1
- package/lib/programmers/AssertProgrammer.js +25 -0
- package/lib/programmers/AssertProgrammer.js.map +1 -1
- package/lib/programmers/CheckerProgrammer.js +35 -0
- package/lib/programmers/CheckerProgrammer.js.map +1 -1
- package/lib/programmers/FeatureProgrammer.js +11 -0
- package/lib/programmers/FeatureProgrammer.js.map +1 -1
- package/lib/programmers/IsProgrammer.js +9 -0
- package/lib/programmers/IsProgrammer.js.map +1 -1
- package/lib/programmers/RandomProgrammer.js +13 -0
- package/lib/programmers/RandomProgrammer.js.map +1 -1
- package/lib/programmers/TypiaProgrammer.js +37 -36
- package/lib/programmers/TypiaProgrammer.js.map +1 -1
- package/lib/programmers/helpers/FunctionImporeter.js +1 -1
- package/lib/programmers/helpers/PruneJoiner.js +1 -0
- package/lib/programmers/helpers/PruneJoiner.js.map +1 -1
- package/lib/programmers/helpers/RandomJoiner.js +2 -0
- package/lib/programmers/helpers/RandomJoiner.js.map +1 -1
- package/lib/programmers/helpers/RandomRanger.js +8 -0
- package/lib/programmers/helpers/RandomRanger.js.map +1 -1
- package/lib/programmers/helpers/StringifyJoinder.js +4 -0
- package/lib/programmers/helpers/StringifyJoinder.js.map +1 -1
- package/lib/programmers/helpers/UnionExplorer.js +10 -0
- package/lib/programmers/helpers/UnionExplorer.js.map +1 -1
- package/lib/programmers/helpers/UnionPredicator.js +5 -0
- package/lib/programmers/helpers/UnionPredicator.js.map +1 -1
- package/lib/programmers/http/HttpHeadersProgrammer.js +19 -0
- package/lib/programmers/http/HttpHeadersProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpQueryProgrammer.js +13 -0
- package/lib/programmers/http/HttpQueryProgrammer.js.map +1 -1
- package/lib/programmers/internal/application_alias.js +2 -0
- package/lib/programmers/internal/application_alias.js.map +1 -1
- package/lib/programmers/internal/application_array.js +5 -0
- package/lib/programmers/internal/application_array.js.map +1 -1
- package/lib/programmers/internal/application_boolean.js +3 -0
- package/lib/programmers/internal/application_boolean.js.map +1 -1
- package/lib/programmers/internal/application_constant.js +3 -0
- package/lib/programmers/internal/application_constant.js.map +1 -1
- package/lib/programmers/internal/application_default.js +3 -0
- package/lib/programmers/internal/application_default.js.map +1 -1
- package/lib/programmers/internal/application_default_string.js +5 -0
- package/lib/programmers/internal/application_default_string.js.map +1 -1
- package/lib/programmers/internal/application_native.js +3 -0
- package/lib/programmers/internal/application_native.js.map +1 -1
- package/lib/programmers/internal/application_number.js +5 -0
- package/lib/programmers/internal/application_number.js.map +1 -1
- package/lib/programmers/internal/application_object.js +16 -3
- package/lib/programmers/internal/application_object.js.map +1 -1
- package/lib/programmers/internal/application_schema.js +17 -0
- package/lib/programmers/internal/application_schema.js.map +1 -1
- package/lib/programmers/internal/application_string.js +5 -0
- package/lib/programmers/internal/application_string.js.map +1 -1
- package/lib/programmers/internal/application_templates.js +6 -0
- package/lib/programmers/internal/application_templates.js.map +1 -1
- package/lib/programmers/internal/application_tuple.js +3 -0
- package/lib/programmers/internal/application_tuple.js.map +1 -1
- package/lib/programmers/internal/check_array_length.js +3 -0
- package/lib/programmers/internal/check_array_length.js.map +1 -1
- package/lib/programmers/internal/check_bigint.js +6 -0
- package/lib/programmers/internal/check_bigint.js.map +1 -1
- package/lib/programmers/internal/check_dynamic_key.js +6 -0
- package/lib/programmers/internal/check_dynamic_key.js.map +1 -1
- package/lib/programmers/internal/check_dynamic_properties.js +13 -0
- package/lib/programmers/internal/check_dynamic_properties.js.map +1 -1
- package/lib/programmers/internal/check_everything.js +3 -0
- package/lib/programmers/internal/check_everything.js.map +1 -1
- package/lib/programmers/internal/check_native.js +3 -0
- package/lib/programmers/internal/check_native.js.map +1 -1
- package/lib/programmers/internal/check_number.js +6 -0
- package/lib/programmers/internal/check_number.js.map +1 -1
- package/lib/programmers/internal/check_object.js +9 -0
- package/lib/programmers/internal/check_object.js.map +1 -1
- package/lib/programmers/internal/check_string.js +6 -0
- package/lib/programmers/internal/check_string.js.map +1 -1
- package/lib/programmers/internal/check_template.js +6 -0
- package/lib/programmers/internal/check_template.js.map +1 -1
- package/lib/programmers/internal/check_union_array_like.js +4 -0
- package/lib/programmers/internal/check_union_array_like.js.map +1 -1
- package/lib/programmers/internal/decode_union_object.js +3 -0
- package/lib/programmers/internal/decode_union_object.js.map +1 -1
- package/lib/programmers/internal/feature_object_entries.js +3 -0
- package/lib/programmers/internal/feature_object_entries.js.map +1 -1
- package/lib/programmers/internal/metadata_to_pattern.js +3 -0
- package/lib/programmers/internal/metadata_to_pattern.js.map +1 -1
- package/lib/programmers/internal/prune_object_properties.js +3 -0
- package/lib/programmers/internal/prune_object_properties.js.map +1 -1
- package/lib/programmers/internal/random_custom.js +3 -0
- package/lib/programmers/internal/random_custom.js.map +1 -1
- package/lib/programmers/internal/stringify_dynamic_properties.js +11 -0
- package/lib/programmers/internal/stringify_dynamic_properties.js.map +1 -1
- package/lib/programmers/internal/stringify_native.js +3 -0
- package/lib/programmers/internal/stringify_native.js.map +1 -1
- package/lib/programmers/internal/stringify_regular_properties.js +7 -0
- package/lib/programmers/internal/stringify_regular_properties.js.map +1 -1
- package/lib/programmers/internal/template_to_pattern.js +3 -0
- package/lib/programmers/internal/template_to_pattern.js.map +1 -1
- package/lib/programmers/json/JsonApplicationProgrammer.js +3 -0
- package/lib/programmers/json/JsonApplicationProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonStringifyProgrammer.js +36 -0
- package/lib/programmers/json/JsonStringifyProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscCloneProgrammer.js +22 -0
- package/lib/programmers/misc/MiscCloneProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscPruneProgrammer.js +20 -0
- package/lib/programmers/misc/MiscPruneProgrammer.js.map +1 -1
- package/lib/programmers/notations/NotationGeneralProgrammer.js +22 -0
- package/lib/programmers/notations/NotationGeneralProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufDecodeProgrammer.js +3 -0
- package/lib/programmers/protobuf/ProtobufDecodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufEncodeProgrammer.js +33 -15
- package/lib/programmers/protobuf/ProtobufEncodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufMessageProgrammer.js +6 -0
- package/lib/programmers/protobuf/ProtobufMessageProgrammer.js.map +1 -1
- package/lib/protobuf.d.ts +223 -31
- package/lib/protobuf.js +134 -45
- package/lib/protobuf.js.map +1 -1
- package/lib/reflect/index.d.ts +0 -0
- package/lib/reflect/index.js +2 -0
- package/lib/reflect/index.js.map +1 -0
- package/lib/reflect.d.ts +6 -2
- package/lib/reflect.js +8 -4
- package/lib/reflect.js.map +1 -1
- package/lib/schemas/metadata/Metadata.js +64 -2
- package/lib/schemas/metadata/Metadata.js.map +1 -1
- package/lib/schemas/metadata/MetadataAlias.js +13 -1
- package/lib/schemas/metadata/MetadataAlias.js.map +1 -1
- package/lib/schemas/metadata/MetadataApplication.js +7 -1
- package/lib/schemas/metadata/MetadataApplication.js.map +1 -1
- package/lib/schemas/metadata/MetadataArray.js +4 -1
- package/lib/schemas/metadata/MetadataArray.js.map +1 -1
- package/lib/schemas/metadata/MetadataArrayType.js +10 -1
- package/lib/schemas/metadata/MetadataArrayType.js.map +1 -1
- package/lib/schemas/metadata/MetadataAtomic.js +4 -1
- package/lib/schemas/metadata/MetadataAtomic.js.map +1 -1
- package/lib/schemas/metadata/MetadataComponents.js +4 -1
- package/lib/schemas/metadata/MetadataComponents.js.map +1 -1
- package/lib/schemas/metadata/MetadataConstant.js +1 -1
- package/lib/schemas/metadata/MetadataEscaped.js +10 -1
- package/lib/schemas/metadata/MetadataEscaped.js.map +1 -1
- package/lib/schemas/metadata/MetadataObject.js +28 -1
- package/lib/schemas/metadata/MetadataObject.js.map +1 -1
- package/lib/schemas/metadata/MetadataProperty.js +13 -1
- package/lib/schemas/metadata/MetadataProperty.js.map +1 -1
- package/lib/schemas/metadata/MetadataTuple.js +7 -1
- package/lib/schemas/metadata/MetadataTuple.js.map +1 -1
- package/lib/schemas/metadata/MetadataTupleType.js +7 -1
- package/lib/schemas/metadata/MetadataTupleType.js.map +1 -1
- package/lib/transformers/CallExpressionTransformer.js +34 -0
- package/lib/transformers/CallExpressionTransformer.js.map +1 -1
- package/lib/transformers/FileTransformer.js +2 -0
- package/lib/transformers/FileTransformer.js.map +1 -1
- package/lib/transformers/TransformerError.js +2 -1
- package/lib/transformers/TransformerError.js.map +1 -1
- package/lib/transformers/features/CreateRandomTransformer.js +3 -0
- package/lib/transformers/features/CreateRandomTransformer.js.map +1 -1
- package/lib/transformers/features/RandomTransformer.js +3 -0
- package/lib/transformers/features/RandomTransformer.js.map +1 -1
- package/lib/transformers/features/json/JsonApplicationTransformer.js +14 -0
- package/lib/transformers/features/json/JsonApplicationTransformer.js.map +1 -1
- package/lib/transformers/features/misc/MiscLiteralsTransformer.js +3 -0
- package/lib/transformers/features/misc/MiscLiteralsTransformer.js.map +1 -1
- package/lib/transformers/features/protobuf/ProtobufMessageTransformer.js +3 -0
- package/lib/transformers/features/protobuf/ProtobufMessageTransformer.js.map +1 -1
- package/lib/transformers/features/reflect/ReflectMetadataTransformer.js +4 -0
- package/lib/transformers/features/reflect/ReflectMetadataTransformer.js.map +1 -1
- package/lib/transformers/internal/GenericTransformer.js +6 -0
- package/lib/transformers/internal/GenericTransformer.js.map +1 -1
- package/lib/utils/NamingConvention/NamingConvention.d.ts +3 -0
- package/lib/utils/NamingConvention/NamingConvention.js +112 -0
- package/lib/utils/NamingConvention/NamingConvention.js.map +1 -0
- package/lib/utils/NamingConvention/index.d.ts +1 -0
- package/lib/utils/NamingConvention/index.js +28 -0
- package/lib/utils/NamingConvention/index.js.map +1 -0
- package/lib/utils/PatternUtil.js +3 -3
- package/lib/utils/PatternUtil.js.map +1 -1
- package/lib/utils/RandomGenerator/RandomGenerator.d.ts +16 -0
- package/lib/utils/RandomGenerator/RandomGenerator.js +85 -0
- package/lib/utils/RandomGenerator/RandomGenerator.js.map +1 -0
- package/lib/utils/RandomGenerator/index.d.ts +1 -0
- package/lib/utils/RandomGenerator/index.js +28 -0
- package/lib/utils/RandomGenerator/index.js.map +1 -0
- package/lib/utils/Singleton.js +1 -1
- package/lib/utils/StringUtil/StringUtil.d.ts +1 -0
- package/lib/utils/StringUtil/StringUtil.js +8 -0
- package/lib/utils/StringUtil/StringUtil.js.map +1 -0
- package/lib/utils/StringUtil/index.d.ts +1 -0
- package/lib/utils/StringUtil/index.js +28 -0
- package/lib/utils/StringUtil/index.js.map +1 -0
- package/package.json +2 -2
- package/src/functional/$HeadersReader/$HeadersReader.ts +26 -0
- package/src/functional/$HeadersReader/index.ts +1 -0
- package/src/functional/$ParameterReader/$ParameterReader.ts +29 -0
- package/src/functional/$ParameterReader/index.ts +1 -0
- package/src/functional/$ProtobufReader.ts +4 -4
- package/src/functional/$ProtobufSizer.ts +10 -10
- package/src/functional/$ProtobufWriter.ts +6 -6
- package/src/functional/$QueryReader/$QueryReader.ts +54 -0
- package/src/functional/$QueryReader/index.ts +1 -0
- package/src/functional/$throws.ts +10 -0
- package/src/functional/Namespace/http.ts +7 -0
- package/src/functional/Namespace/index.ts +75 -0
- package/src/functional/Namespace/json.ts +15 -0
- package/src/functional/Namespace/misc.ts +14 -0
- package/src/functional/Namespace/notations.ts +22 -0
- package/src/functional/Namespace/protobuf.ts +20 -0
- package/src/functional/is.ts +10 -0
- package/src/http.ts +172 -88
- package/src/json.ts +93 -59
- package/src/misc.ts +107 -69
- package/src/module.ts +91 -73
- package/src/notations.ts +190 -128
- package/src/programmers/notations/NotationGeneralProgrammer.ts +517 -517
- package/src/protobuf.ts +121 -86
- package/src/reflect/index.ts +0 -0
- package/src/reflect.ts +5 -9
- package/src/transformers/CallExpressionTransformer.ts +28 -28
- package/src/utils/NamingConvention/NamingConvention.ts +85 -0
- package/src/utils/NamingConvention/index.ts +1 -0
- package/src/utils/RandomGenerator/RandomGenerator.ts +78 -0
- package/src/utils/RandomGenerator/index.ts +1 -0
- package/src/utils/StringUtil/StringUtil.ts +2 -0
- package/src/utils/StringUtil/index.ts +1 -0
- package/lib/functional/$HeadersReader.d.ts +0 -6
- package/lib/functional/$HeadersReader.js +0 -35
- package/lib/functional/$HeadersReader.js.map +0 -1
- package/lib/functional/$ParameterReader.d.ts +0 -6
- package/lib/functional/$ParameterReader.js +0 -35
- package/lib/functional/$ParameterReader.js.map +0 -1
- package/lib/functional/$QueryReader.d.ts +0 -8
- package/lib/functional/$QueryReader.js +0 -60
- package/lib/functional/$QueryReader.js.map +0 -1
- package/lib/functional/Namespace.js +0 -104
- package/lib/functional/Namespace.js.map +0 -1
- package/lib/utils/NamingConvention.d.ts +0 -5
- package/lib/utils/NamingConvention.js +0 -115
- package/lib/utils/NamingConvention.js.map +0 -1
- package/lib/utils/RandomGenerator.d.ts +0 -1
- package/lib/utils/RandomGenerator.js +0 -66
- package/lib/utils/RandomGenerator.js.map +0 -1
- package/lib/utils/StringUtil.d.ts +0 -3
- package/lib/utils/StringUtil.js +0 -10
- package/lib/utils/StringUtil.js.map +0 -1
- package/src/functional/$HeadersReader.ts +0 -28
- package/src/functional/$ParameterReader.ts +0 -31
- package/src/functional/$QueryReader.ts +0 -56
- package/src/functional/Namespace.ts +0 -167
- package/src/utils/NamingConvention.ts +0 -87
- package/src/utils/RandomGenerator.ts +0 -83
- package/src/utils/StringUtil.ts +0 -4
- /package/lib/functional/{Namespace.d.ts → is.d.ts} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.encode = exports.decode = void 0;
|
|
15
|
+
var _ProtobufReader_1 = require("../$ProtobufReader");
|
|
16
|
+
var _ProtobufSizer_1 = require("../$ProtobufSizer");
|
|
17
|
+
var _ProtobufWriter_1 = require("../$ProtobufWriter");
|
|
18
|
+
var _strlen_1 = require("../$strlen");
|
|
19
|
+
var _throws_1 = require("../$throws");
|
|
20
|
+
var is_1 = require("../is");
|
|
21
|
+
var decode = function (method) { return (__assign(__assign({}, (0, is_1.is)()), { Reader: _ProtobufReader_1.$ProtobufReader, throws: (0, _throws_1.$throws)("protobuf.".concat(method)) })); };
|
|
22
|
+
exports.decode = decode;
|
|
23
|
+
var encode = function (method) { return (__assign(__assign({}, (0, is_1.is)()), { Sizer: _ProtobufSizer_1.$ProtobufSizer, Writer: _ProtobufWriter_1.$ProtobufWriter, strlen: _strlen_1.$strlen, throws: (0, _throws_1.$throws)(method) })); };
|
|
24
|
+
exports.encode = encode;
|
|
25
|
+
//# sourceMappingURL=protobuf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../src/functional/Namespace/protobuf.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAAqD;AACrD,oDAAmD;AACnD,sDAAqD;AACrD,sCAAqC;AACrC,sCAAqC;AACrC,4BAA2B;AAEpB,IAAM,MAAM,GAAG,UAAC,MAAc,IAAK,OAAA,uBACrC,IAAA,OAAE,GAAE,KACP,MAAM,EAAE,iCAAe,EACvB,MAAM,EAAE,IAAA,iBAAO,EAAC,mBAAY,MAAM,CAAE,CAAC,IACrC,EAJwC,CAIxC,CAAC;AAJU,QAAA,MAAM,UAIhB;AAEI,IAAM,MAAM,GAAG,UAAC,MAAc,IAAK,OAAA,uBACrC,IAAA,OAAE,GAAE,KACP,KAAK,EAAE,+BAAc,EACrB,MAAM,EAAE,iCAAe,EACvB,MAAM,EAAE,iBAAO,EACf,MAAM,EAAE,IAAA,iBAAO,EAAC,MAAM,CAAC,IACvB,EANwC,CAMxC,CAAC;AANU,QAAA,MAAM,UAMhB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.is = void 0;
|
|
4
|
+
var _is_between_1 = require("./$is_between");
|
|
5
|
+
var _stoll_1 = require("./$stoll");
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
var is = function () { return ({
|
|
10
|
+
is_between: _is_between_1.$is_between,
|
|
11
|
+
is_bigint_string: _stoll_1.$is_bigint_string,
|
|
12
|
+
}); };
|
|
13
|
+
exports.is = is;
|
|
14
|
+
//# sourceMappingURL=is.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is.js","sourceRoot":"","sources":["../../src/functional/is.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,mCAA6C;AAE7C;;GAEG;AACI,IAAM,EAAE,GAAG,cAAM,OAAA,CAAC;IACvB,UAAU,EAAE,yBAAW;IACvB,gBAAgB,EAAE,0BAAiB;CACpC,CAAC,EAHsB,CAGtB,CAAC;AAHU,QAAA,EAAE,MAGZ"}
|
package/lib/http.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { Resolved } from "./Resolved";
|
|
|
34
34
|
*
|
|
35
35
|
* @author Jeongho Nam - https://github.com/samchon
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
declare function query(): never;
|
|
38
38
|
/**
|
|
39
39
|
* URL query decoder.
|
|
40
40
|
*
|
|
@@ -66,7 +66,9 @@ export declare function query(): never;
|
|
|
66
66
|
*
|
|
67
67
|
* @author Jeongho Nam - https://github.com/samchon
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
declare function query<T extends object>(input: string | URLSearchParams): Resolved<T>;
|
|
70
|
+
declare const queryPure: typeof query & typeof import("./functional/$QueryReader/$QueryReader");
|
|
71
|
+
export { queryPure as query };
|
|
70
72
|
/**
|
|
71
73
|
* > You must configure the generic argument `T`.
|
|
72
74
|
*
|
|
@@ -97,7 +99,7 @@ export declare function query<T extends object>(input: string | URLSearchParams)
|
|
|
97
99
|
*
|
|
98
100
|
* @author Jeongho Nam - https://github.com/samchon
|
|
99
101
|
*/
|
|
100
|
-
|
|
102
|
+
declare function assertQuery(): never;
|
|
101
103
|
/**
|
|
102
104
|
* URL query decoder with type assertion.
|
|
103
105
|
*
|
|
@@ -126,7 +128,16 @@ export declare function assertQuery(): never;
|
|
|
126
128
|
*
|
|
127
129
|
* @author Jeongho Nam - https://github.com/samchon
|
|
128
130
|
*/
|
|
129
|
-
|
|
131
|
+
declare function assertQuery<T extends object>(input: string | URLSearchParams): Resolved<T>;
|
|
132
|
+
declare const assertQueryPure: typeof assertQuery & typeof import("./functional/$QueryReader/$QueryReader") & {
|
|
133
|
+
join: (str: string) => string;
|
|
134
|
+
every: <T>(array: T[], pred: (value: T, i: number) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null;
|
|
135
|
+
guard: (exceptionable: boolean, props: Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
136
|
+
predicate: (matched: boolean, exceptionable: boolean, closure: () => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
137
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
138
|
+
is_bigint_string: (str: string) => boolean;
|
|
139
|
+
};
|
|
140
|
+
export { assertQueryPure as assertQuery };
|
|
130
141
|
/**
|
|
131
142
|
* > You must configure the generic argument `T`.
|
|
132
143
|
*
|
|
@@ -156,7 +167,7 @@ export declare function assertQuery<T extends object>(input: string | URLSearchP
|
|
|
156
167
|
*
|
|
157
168
|
* @author Jeongho Nam - https://github.com/samchon
|
|
158
169
|
*/
|
|
159
|
-
|
|
170
|
+
declare function isQuery(): never;
|
|
160
171
|
/**
|
|
161
172
|
* URL query decoder with type checking.
|
|
162
173
|
*
|
|
@@ -184,7 +195,12 @@ export declare function isQuery(): never;
|
|
|
184
195
|
*
|
|
185
196
|
* @author Jeongho Nam - https://github.com/samchon
|
|
186
197
|
*/
|
|
187
|
-
|
|
198
|
+
declare function isQuery<T extends object>(input: string | URLSearchParams): Resolved<T> | null;
|
|
199
|
+
declare const isQueryPure: typeof isQuery & typeof import("./functional/$QueryReader/$QueryReader") & {
|
|
200
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
201
|
+
is_bigint_string: (str: string) => boolean;
|
|
202
|
+
};
|
|
203
|
+
export { isQueryPure as isQuery };
|
|
188
204
|
/**
|
|
189
205
|
* > You must configure the generic argument `T`.
|
|
190
206
|
*
|
|
@@ -215,7 +231,7 @@ export declare function isQuery<T extends object>(input: string | URLSearchParam
|
|
|
215
231
|
*
|
|
216
232
|
* @author Jeongho Nam - https://github.com/samchon
|
|
217
233
|
*/
|
|
218
|
-
|
|
234
|
+
declare function validateQuery(): never;
|
|
219
235
|
/**
|
|
220
236
|
* URL query decoder with type validation.
|
|
221
237
|
*
|
|
@@ -244,7 +260,15 @@ export declare function validateQuery(): never;
|
|
|
244
260
|
*
|
|
245
261
|
* @author Jeongho Nam - https://github.com/samchon
|
|
246
262
|
*/
|
|
247
|
-
|
|
263
|
+
declare function validateQuery<T extends object>(input: string | URLSearchParams): IValidation<Resolved<T>>;
|
|
264
|
+
declare const validateQueryPure: typeof validateQuery & typeof import("./functional/$QueryReader/$QueryReader") & {
|
|
265
|
+
join: (str: string) => string;
|
|
266
|
+
report: (array: IValidation.IError[]) => (exceptable: boolean, error: IValidation.IError) => false;
|
|
267
|
+
predicate: (res: IValidation) => (matched: boolean, exceptionable: boolean, closure: () => IValidation.IError) => boolean;
|
|
268
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
269
|
+
is_bigint_string: (str: string) => boolean;
|
|
270
|
+
};
|
|
271
|
+
export { validateQueryPure as validateQuery };
|
|
248
272
|
/**
|
|
249
273
|
* > You must configure the generic argument `T`.
|
|
250
274
|
*
|
|
@@ -299,7 +323,7 @@ export declare function validateQuery<T extends object>(input: string | URLSearc
|
|
|
299
323
|
*
|
|
300
324
|
* @author Jeongho Nam - https://github.com/samchon
|
|
301
325
|
*/
|
|
302
|
-
|
|
326
|
+
declare function headers(): never;
|
|
303
327
|
/**
|
|
304
328
|
* Headers decoder (for express and fastify).
|
|
305
329
|
*
|
|
@@ -352,7 +376,9 @@ export declare function headers(): never;
|
|
|
352
376
|
*
|
|
353
377
|
* @author Jeongho Nam - https://github.com/samchon
|
|
354
378
|
*/
|
|
355
|
-
|
|
379
|
+
declare function headers<T extends object>(input: Record<string, string | string[] | undefined>): Resolved<T>;
|
|
380
|
+
declare const headersPure: typeof headers & typeof import("./functional/$HeadersReader/$HeadersReader");
|
|
381
|
+
export { headersPure as headers };
|
|
356
382
|
/**
|
|
357
383
|
* > You must configure the generic argument `T`.
|
|
358
384
|
*
|
|
@@ -405,7 +431,7 @@ export declare function headers<T extends object>(input: Record<string, string |
|
|
|
405
431
|
*
|
|
406
432
|
* @author Jeongho Nam - https://github.com/samchon
|
|
407
433
|
*/
|
|
408
|
-
|
|
434
|
+
declare function assertHeaders(): never;
|
|
409
435
|
/**
|
|
410
436
|
* Headers decoder with type assertion (for express and fastify).
|
|
411
437
|
*
|
|
@@ -456,7 +482,16 @@ export declare function assertHeaders(): never;
|
|
|
456
482
|
*
|
|
457
483
|
* @author Jeongho Nam - https://github.com/samchon
|
|
458
484
|
*/
|
|
459
|
-
|
|
485
|
+
declare function assertHeaders<T extends object>(input: Record<string, string | string[] | undefined>): Resolved<T>;
|
|
486
|
+
declare const assertHeadersPure: typeof assertHeaders & typeof import("./functional/$HeadersReader/$HeadersReader") & {
|
|
487
|
+
join: (str: string) => string;
|
|
488
|
+
every: <T>(array: T[], pred: (value: T, i: number) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null;
|
|
489
|
+
guard: (exceptionable: boolean, props: Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
490
|
+
predicate: (matched: boolean, exceptionable: boolean, closure: () => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
491
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
492
|
+
is_bigint_string: (str: string) => boolean;
|
|
493
|
+
};
|
|
494
|
+
export { assertHeadersPure as assertHeaders };
|
|
460
495
|
/**
|
|
461
496
|
* > You must configure the generic argument `T`.
|
|
462
497
|
*
|
|
@@ -508,7 +543,7 @@ export declare function assertHeaders<T extends object>(input: Record<string, st
|
|
|
508
543
|
*
|
|
509
544
|
* @author Jeongho Nam - https://github.com/samchon
|
|
510
545
|
*/
|
|
511
|
-
|
|
546
|
+
declare function isHeaders(): never;
|
|
512
547
|
/**
|
|
513
548
|
* > You must configure the generic argument `T`.
|
|
514
549
|
*
|
|
@@ -560,7 +595,12 @@ export declare function isHeaders(): never;
|
|
|
560
595
|
*
|
|
561
596
|
* @author Jeongho Nam - https://github.com/samchon
|
|
562
597
|
*/
|
|
563
|
-
|
|
598
|
+
declare function isHeaders<T extends object>(input: Record<string, string | string[] | undefined>): Resolved<T> | null;
|
|
599
|
+
declare const isHeadersPure: typeof isHeaders & typeof import("./functional/$HeadersReader/$HeadersReader") & {
|
|
600
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
601
|
+
is_bigint_string: (str: string) => boolean;
|
|
602
|
+
};
|
|
603
|
+
export { isHeadersPure as isHeaders };
|
|
564
604
|
/**
|
|
565
605
|
* > You must configure the generic argument `T`.
|
|
566
606
|
*
|
|
@@ -613,7 +653,7 @@ export declare function isHeaders<T extends object>(input: Record<string, string
|
|
|
613
653
|
*
|
|
614
654
|
* @author Jeongho Nam - https://github.com/samchon
|
|
615
655
|
*/
|
|
616
|
-
|
|
656
|
+
declare function validateHeaders(): never;
|
|
617
657
|
/**
|
|
618
658
|
* Headers decoder with type validation (for express and fastify).
|
|
619
659
|
*
|
|
@@ -664,7 +704,15 @@ export declare function validateHeaders(): never;
|
|
|
664
704
|
*
|
|
665
705
|
* @author Jeongho Nam - https://github.com/samchon
|
|
666
706
|
*/
|
|
667
|
-
|
|
707
|
+
declare function validateHeaders<T extends object>(input: Record<string, string | string[] | undefined>): IValidation<Resolved<T>>;
|
|
708
|
+
declare const validateHeadersPure: typeof validateHeaders & typeof import("./functional/$HeadersReader/$HeadersReader") & {
|
|
709
|
+
join: (str: string) => string;
|
|
710
|
+
report: (array: IValidation.IError[]) => (exceptable: boolean, error: IValidation.IError) => false;
|
|
711
|
+
predicate: (res: IValidation) => (matched: boolean, exceptionable: boolean, closure: () => IValidation.IError) => boolean;
|
|
712
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
713
|
+
is_bigint_string: (str: string) => boolean;
|
|
714
|
+
};
|
|
715
|
+
export { validateHeadersPure as validateHeaders };
|
|
668
716
|
/**
|
|
669
717
|
* > You must configure the generic argument `T`.
|
|
670
718
|
*
|
|
@@ -682,7 +730,7 @@ export declare function validateHeaders<T extends object>(input: Record<string,
|
|
|
682
730
|
* @param input Path parameter string
|
|
683
731
|
* @returns Decoded path parameter value
|
|
684
732
|
*/
|
|
685
|
-
|
|
733
|
+
declare function parameter(): never;
|
|
686
734
|
/**
|
|
687
735
|
* URL path parameter decoder.
|
|
688
736
|
*
|
|
@@ -698,7 +746,16 @@ export declare function parameter(): never;
|
|
|
698
746
|
* @param input Path parameter string
|
|
699
747
|
* @returns Decoded path parameter value
|
|
700
748
|
*/
|
|
701
|
-
|
|
749
|
+
declare function parameter<T extends Atomic.Type | null>(input: string): Resolved<T>;
|
|
750
|
+
declare const parameterPure: typeof parameter & typeof import("./functional/$ParameterReader/$ParameterReader") & {
|
|
751
|
+
join: (str: string) => string;
|
|
752
|
+
every: <T>(array: T[], pred: (value: T, i: number) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null;
|
|
753
|
+
guard: (exceptionable: boolean, props: Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
754
|
+
predicate: (matched: boolean, exceptionable: boolean, closure: () => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
755
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
756
|
+
is_bigint_string: (str: string) => boolean;
|
|
757
|
+
};
|
|
758
|
+
export { parameterPure as parameter };
|
|
702
759
|
/**
|
|
703
760
|
* Creates a reusable {@link query} function.
|
|
704
761
|
*
|
|
@@ -708,7 +765,7 @@ export declare function parameter<T extends Atomic.Type | null>(input: string):
|
|
|
708
765
|
*
|
|
709
766
|
* @author Jeongho Nam - https://github.com/samchon
|
|
710
767
|
*/
|
|
711
|
-
|
|
768
|
+
declare function createQuery(): never;
|
|
712
769
|
/**
|
|
713
770
|
* Creates a reusable {@link query} function.
|
|
714
771
|
*
|
|
@@ -717,7 +774,9 @@ export declare function createQuery(): never;
|
|
|
717
774
|
*
|
|
718
775
|
* @author Jeongho Nam - https://github.com/samchon
|
|
719
776
|
*/
|
|
720
|
-
|
|
777
|
+
declare function createQuery<T extends object>(): (input: string | URLSearchParams) => T;
|
|
778
|
+
declare const createQueryPure: typeof createQuery & typeof import("./functional/$QueryReader/$QueryReader");
|
|
779
|
+
export { createQueryPure as createQuery };
|
|
721
780
|
/**
|
|
722
781
|
* Creates a reusable {@link assertQuery} function.
|
|
723
782
|
*
|
|
@@ -727,7 +786,7 @@ export declare function createQuery<T extends object>(): (input: string | URLSea
|
|
|
727
786
|
*
|
|
728
787
|
* @author Jeongho Nam - https://github.com/samchon
|
|
729
788
|
*/
|
|
730
|
-
|
|
789
|
+
declare function createAssertQuery(): never;
|
|
731
790
|
/**
|
|
732
791
|
* Creates a reusable {@link assertQuery} function.
|
|
733
792
|
*
|
|
@@ -736,7 +795,16 @@ export declare function createAssertQuery(): never;
|
|
|
736
795
|
*
|
|
737
796
|
* @author Jeongho Nam - https://github.com/samchon
|
|
738
797
|
*/
|
|
739
|
-
|
|
798
|
+
declare function createAssertQuery<T extends object>(): (input: string | URLSearchParams) => T;
|
|
799
|
+
declare const createAssertQueryPure: typeof createAssertQuery & typeof import("./functional/$QueryReader/$QueryReader") & {
|
|
800
|
+
join: (str: string) => string;
|
|
801
|
+
every: <T>(array: T[], pred: (value: T, i: number) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null;
|
|
802
|
+
guard: (exceptionable: boolean, props: Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
803
|
+
predicate: (matched: boolean, exceptionable: boolean, closure: () => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
804
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
805
|
+
is_bigint_string: (str: string) => boolean;
|
|
806
|
+
};
|
|
807
|
+
export { createAssertQueryPure as createAssertQuery };
|
|
740
808
|
/**
|
|
741
809
|
* Creates a reusable {@link isQuery} function.
|
|
742
810
|
*
|
|
@@ -746,7 +814,7 @@ export declare function createAssertQuery<T extends object>(): (input: string |
|
|
|
746
814
|
*
|
|
747
815
|
* @author Jeongho Nam - https://github.com/samchon
|
|
748
816
|
*/
|
|
749
|
-
|
|
817
|
+
declare function createIsQuery(): never;
|
|
750
818
|
/**
|
|
751
819
|
* Creates a reusable {@link isQuery} function.
|
|
752
820
|
*
|
|
@@ -755,7 +823,12 @@ export declare function createIsQuery(): never;
|
|
|
755
823
|
*
|
|
756
824
|
* @author Jeongho Nam - https://github.com/samchon
|
|
757
825
|
*/
|
|
758
|
-
|
|
826
|
+
declare function createIsQuery<T extends object>(): (input: string | URLSearchParams) => T | null;
|
|
827
|
+
declare const createIsQueryPure: typeof createIsQuery & typeof import("./functional/$QueryReader/$QueryReader") & {
|
|
828
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
829
|
+
is_bigint_string: (str: string) => boolean;
|
|
830
|
+
};
|
|
831
|
+
export { createIsQueryPure as createIsQuery };
|
|
759
832
|
/**
|
|
760
833
|
* Creates a reusable {@link validateQuery} function.
|
|
761
834
|
*
|
|
@@ -765,7 +838,7 @@ export declare function createIsQuery<T extends object>(): (input: string | URLS
|
|
|
765
838
|
*
|
|
766
839
|
* @author Jeongho Nam - https://github.com/samchon
|
|
767
840
|
*/
|
|
768
|
-
|
|
841
|
+
declare function createValidateQuery(): never;
|
|
769
842
|
/**
|
|
770
843
|
* Creates a reusable {@link validateQuery} function.
|
|
771
844
|
*
|
|
@@ -774,7 +847,15 @@ export declare function createValidateQuery(): never;
|
|
|
774
847
|
*
|
|
775
848
|
* @author Jeongho Nam - https://github.com/samchon
|
|
776
849
|
*/
|
|
777
|
-
|
|
850
|
+
declare function createValidateQuery<T extends object>(): (input: string | URLSearchParams) => IValidation<Resolved<T>>;
|
|
851
|
+
declare const createValidateQueryPure: typeof createValidateQuery & typeof import("./functional/$QueryReader/$QueryReader") & {
|
|
852
|
+
join: (str: string) => string;
|
|
853
|
+
report: (array: IValidation.IError[]) => (exceptable: boolean, error: IValidation.IError) => false;
|
|
854
|
+
predicate: (res: IValidation) => (matched: boolean, exceptionable: boolean, closure: () => IValidation.IError) => boolean;
|
|
855
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
856
|
+
is_bigint_string: (str: string) => boolean;
|
|
857
|
+
};
|
|
858
|
+
export { createValidateQueryPure as createValidateQuery };
|
|
778
859
|
/**
|
|
779
860
|
* Creates a reusable {@link headers} function.
|
|
780
861
|
*
|
|
@@ -784,7 +865,7 @@ export declare function createValidateQuery<T extends object>(): (input: string
|
|
|
784
865
|
*
|
|
785
866
|
* @author Jeongho Nam - https://github.com/samchon
|
|
786
867
|
*/
|
|
787
|
-
|
|
868
|
+
declare function createHeaders(): never;
|
|
788
869
|
/**
|
|
789
870
|
* Creates a reusable {@link headers} function.
|
|
790
871
|
*
|
|
@@ -793,7 +874,9 @@ export declare function createHeaders(): never;
|
|
|
793
874
|
*
|
|
794
875
|
* @author Jeongho Nam - https://github.com/samchon
|
|
795
876
|
*/
|
|
796
|
-
|
|
877
|
+
declare function createHeaders<T extends object>(): (input: Record<string, string | string[] | undefined>) => T;
|
|
878
|
+
declare const createHeadersPure: typeof createHeaders & typeof import("./functional/$HeadersReader/$HeadersReader");
|
|
879
|
+
export { createHeadersPure as createHeaders };
|
|
797
880
|
/**
|
|
798
881
|
* Creates a reusable {@link assertHeaders} function.
|
|
799
882
|
*
|
|
@@ -803,7 +886,7 @@ export declare function createHeaders<T extends object>(): (input: Record<string
|
|
|
803
886
|
*
|
|
804
887
|
* @author Jeongho Nam - https://github.com/samchon
|
|
805
888
|
*/
|
|
806
|
-
|
|
889
|
+
declare function createAssertHeaders(): never;
|
|
807
890
|
/**
|
|
808
891
|
* Creates a reusable {@link assertHeaders} function.
|
|
809
892
|
*
|
|
@@ -812,7 +895,16 @@ export declare function createAssertHeaders(): never;
|
|
|
812
895
|
*
|
|
813
896
|
* @author Jeongho Nam - https://github.com/samchon
|
|
814
897
|
*/
|
|
815
|
-
|
|
898
|
+
declare function createAssertHeaders<T extends object>(): (input: Record<string, string | string[] | undefined>) => T;
|
|
899
|
+
declare const createAssertHeadersPure: typeof createAssertHeaders & typeof import("./functional/$HeadersReader/$HeadersReader") & {
|
|
900
|
+
join: (str: string) => string;
|
|
901
|
+
every: <T>(array: T[], pred: (value: T, i: number) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null;
|
|
902
|
+
guard: (exceptionable: boolean, props: Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
903
|
+
predicate: (matched: boolean, exceptionable: boolean, closure: () => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
904
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
905
|
+
is_bigint_string: (str: string) => boolean;
|
|
906
|
+
};
|
|
907
|
+
export { createAssertHeadersPure as createAssertHeaders };
|
|
816
908
|
/**
|
|
817
909
|
* Creates a reusable {@link isHeaders} function.
|
|
818
910
|
*
|
|
@@ -822,7 +914,7 @@ export declare function createAssertHeaders<T extends object>(): (input: Record<
|
|
|
822
914
|
*
|
|
823
915
|
* @author Jeongho Nam - https://github.com/samchon
|
|
824
916
|
*/
|
|
825
|
-
|
|
917
|
+
declare function createIsHeaders(): never;
|
|
826
918
|
/**
|
|
827
919
|
* Creates a reusable {@link isHeaders} function.
|
|
828
920
|
*
|
|
@@ -831,7 +923,12 @@ export declare function createIsHeaders(): never;
|
|
|
831
923
|
*
|
|
832
924
|
* @author Jeongho Nam - https://github.com/samchon
|
|
833
925
|
*/
|
|
834
|
-
|
|
926
|
+
declare function createIsHeaders<T extends object>(): (input: Record<string, string | string[] | undefined>) => T | null;
|
|
927
|
+
declare const createIsHeadersPure: typeof createIsHeaders & typeof import("./functional/$HeadersReader/$HeadersReader") & {
|
|
928
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
929
|
+
is_bigint_string: (str: string) => boolean;
|
|
930
|
+
};
|
|
931
|
+
export { createIsHeadersPure as createIsHeaders };
|
|
835
932
|
/**
|
|
836
933
|
* Creates a reusable {@link validateHeaders} function.
|
|
837
934
|
*
|
|
@@ -841,7 +938,7 @@ export declare function createIsHeaders<T extends object>(): (input: Record<stri
|
|
|
841
938
|
*
|
|
842
939
|
* @author Jeongho Nam - https://github.com/samchon
|
|
843
940
|
*/
|
|
844
|
-
|
|
941
|
+
declare function createValidateHeaders(): never;
|
|
845
942
|
/**
|
|
846
943
|
* Creates a reusable {@link validateHeaders} function.
|
|
847
944
|
*
|
|
@@ -850,7 +947,15 @@ export declare function createValidateHeaders(): never;
|
|
|
850
947
|
*
|
|
851
948
|
* @author Jeongho Nam - https://github.com/samchon
|
|
852
949
|
*/
|
|
853
|
-
|
|
950
|
+
declare function createValidateHeaders<T extends object>(): (input: Record<string, string | string[] | undefined>) => IValidation<Resolved<T>>;
|
|
951
|
+
declare const createValidateHeadersPure: typeof createValidateHeaders & typeof import("./functional/$HeadersReader/$HeadersReader") & {
|
|
952
|
+
join: (str: string) => string;
|
|
953
|
+
report: (array: IValidation.IError[]) => (exceptable: boolean, error: IValidation.IError) => false;
|
|
954
|
+
predicate: (res: IValidation) => (matched: boolean, exceptionable: boolean, closure: () => IValidation.IError) => boolean;
|
|
955
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
956
|
+
is_bigint_string: (str: string) => boolean;
|
|
957
|
+
};
|
|
958
|
+
export { createValidateHeadersPure as createValidateHeaders };
|
|
854
959
|
/**
|
|
855
960
|
* Creates a reusable {@link parameter} function.
|
|
856
961
|
*
|
|
@@ -860,7 +965,7 @@ export declare function createValidateHeaders<T extends object>(): (input: Recor
|
|
|
860
965
|
*
|
|
861
966
|
* @author Jeongho Nam - https://github.com/samchon
|
|
862
967
|
*/
|
|
863
|
-
|
|
968
|
+
declare function createParameter(): never;
|
|
864
969
|
/**
|
|
865
970
|
* Creates a reusable {@link parameter} function.
|
|
866
971
|
*
|
|
@@ -869,4 +974,13 @@ export declare function createParameter(): never;
|
|
|
869
974
|
*
|
|
870
975
|
* @author Jeongho Nam - https://github.com/samchon
|
|
871
976
|
*/
|
|
872
|
-
|
|
977
|
+
declare function createParameter<T extends Atomic.Type | null>(): (input: string) => T;
|
|
978
|
+
declare const createParameterPure: typeof createParameter & typeof import("./functional/$ParameterReader/$ParameterReader") & {
|
|
979
|
+
join: (str: string) => string;
|
|
980
|
+
every: <T>(array: T[], pred: (value: T, i: number) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null) => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method"> | null;
|
|
981
|
+
guard: (exceptionable: boolean, props: Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
982
|
+
predicate: (matched: boolean, exceptionable: boolean, closure: () => Omit<import("./TypeGuardError").TypeGuardError.IProps, "method">) => boolean;
|
|
983
|
+
is_between: (value: number, minimum: number, maximum: number) => boolean;
|
|
984
|
+
is_bigint_string: (str: string) => boolean;
|
|
985
|
+
};
|
|
986
|
+
export { createParameterPure as createParameter };
|