typia 9.7.1 → 9.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AssertionGuard.d.mts +27 -25
- package/lib/AssertionGuard.d.ts +27 -25
- package/lib/CamelCase.d.mts +1 -1
- package/lib/CamelCase.d.ts +1 -1
- package/lib/IRandomGenerator.d.mts +44 -42
- package/lib/IRandomGenerator.d.ts +44 -42
- package/lib/IReadableURLSearchParams.d.mts +2 -2
- package/lib/IReadableURLSearchParams.d.ts +2 -2
- package/lib/PascalCase.d.mts +1 -1
- package/lib/PascalCase.d.ts +1 -1
- package/lib/Primitive.d.mts +20 -22
- package/lib/Primitive.d.ts +20 -22
- package/lib/Resolved.d.mts +16 -18
- package/lib/Resolved.d.ts +16 -18
- package/lib/SnakeCase.d.mts +3 -2
- package/lib/SnakeCase.d.ts +3 -2
- package/lib/TypeGuardError.d.mts +88 -61
- package/lib/TypeGuardError.d.ts +88 -61
- package/lib/TypeGuardError.js +40 -29
- package/lib/TypeGuardError.js.map +1 -1
- package/lib/TypeGuardError.mjs +70 -48
- package/lib/factories/MetadataCollection.js +4 -12
- package/lib/factories/MetadataCollection.js.map +1 -1
- package/lib/factories/MetadataCollection.mjs +4 -12
- package/lib/factories/MetadataCommentTagFactory.js +5 -15
- package/lib/factories/MetadataCommentTagFactory.js.map +1 -1
- package/lib/factories/MetadataCommentTagFactory.mjs +5 -15
- package/lib/factories/MetadataFactory.js +1 -3
- package/lib/factories/MetadataFactory.js.map +1 -1
- package/lib/factories/MetadataFactory.mjs +1 -3
- package/lib/factories/ProtobufFactory.js +1 -3
- package/lib/factories/ProtobufFactory.js.map +1 -1
- package/lib/factories/ProtobufFactory.mjs +1 -3
- package/lib/functional.d.mts +196 -195
- package/lib/functional.d.ts +196 -195
- package/lib/functional.js +18 -54
- package/lib/functional.js.map +1 -1
- package/lib/functional.mjs +18 -54
- package/lib/http.d.mts +303 -319
- package/lib/http.d.ts +303 -319
- package/lib/http.js +26 -78
- package/lib/http.js.map +1 -1
- package/lib/http.mjs +26 -78
- package/lib/internal/_ProtobufReader.d.mts +3 -9
- package/lib/internal/_ProtobufReader.d.ts +3 -9
- package/lib/internal/_ProtobufReader.js.map +1 -1
- package/lib/internal/_ProtobufReader.mjs +3 -9
- package/lib/internal/_ProtobufSizer.d.mts +4 -12
- package/lib/internal/_ProtobufSizer.d.ts +4 -12
- package/lib/internal/_ProtobufSizer.js.map +1 -1
- package/lib/internal/_ProtobufSizer.mjs +4 -12
- package/lib/internal/_ProtobufWriter.d.mts +5 -15
- package/lib/internal/_ProtobufWriter.d.ts +5 -15
- package/lib/internal/_ProtobufWriter.js.map +1 -1
- package/lib/internal/_ProtobufWriter.mjs +5 -15
- package/lib/internal/_jsonStringifyString.d.mts +4 -4
- package/lib/internal/_jsonStringifyString.d.ts +4 -4
- package/lib/internal/_jsonStringifyString.js +4 -4
- package/lib/internal/_jsonStringifyString.mjs +4 -4
- package/lib/json.d.mts +174 -195
- package/lib/json.d.ts +174 -195
- package/lib/json.js +16 -48
- package/lib/json.js.map +1 -1
- package/lib/json.mjs +16 -48
- package/lib/llm.d.mts +275 -192
- package/lib/llm.d.ts +275 -192
- package/lib/llm.js +4 -12
- package/lib/llm.js.map +1 -1
- package/lib/llm.mjs +4 -12
- package/lib/misc.d.mts +149 -172
- package/lib/misc.d.ts +149 -172
- package/lib/misc.js +17 -51
- package/lib/misc.js.map +1 -1
- package/lib/misc.mjs +17 -51
- package/lib/module.d.mts +263 -275
- package/lib/module.d.ts +263 -275
- package/lib/module.js +18 -54
- package/lib/module.js.map +1 -1
- package/lib/module.mjs +18 -54
- package/lib/notations.d.mts +153 -174
- package/lib/notations.d.ts +153 -174
- package/lib/notations.js +24 -72
- package/lib/notations.js.map +1 -1
- package/lib/notations.mjs +24 -72
- package/lib/programmers/FeatureProgrammer.d.mts +19 -41
- package/lib/programmers/FeatureProgrammer.d.ts +19 -41
- package/lib/programmers/FeatureProgrammer.js.map +1 -1
- package/lib/programmers/ImportProgrammer.js +3 -9
- package/lib/programmers/ImportProgrammer.js.map +1 -1
- package/lib/programmers/ImportProgrammer.mjs +3 -9
- package/lib/programmers/RandomProgrammer.js +6 -0
- package/lib/programmers/RandomProgrammer.js.map +1 -1
- package/lib/programmers/RandomProgrammer.mjs +6 -0
- package/lib/programmers/helpers/ProtobufWire.d.mts +13 -13
- package/lib/programmers/helpers/ProtobufWire.d.ts +13 -13
- package/lib/programmers/internal/check_array_length.js +2 -6
- package/lib/programmers/internal/check_array_length.js.map +1 -1
- package/lib/programmers/internal/check_array_length.mjs +2 -6
- package/lib/programmers/internal/check_bigint.js +2 -6
- package/lib/programmers/internal/check_bigint.js.map +1 -1
- package/lib/programmers/internal/check_bigint.mjs +2 -6
- package/lib/programmers/internal/check_dynamic_key.js +2 -6
- package/lib/programmers/internal/check_dynamic_key.js.map +1 -1
- package/lib/programmers/internal/check_dynamic_key.mjs +2 -6
- package/lib/programmers/internal/check_dynamic_properties.js +3 -9
- package/lib/programmers/internal/check_dynamic_properties.js.map +1 -1
- package/lib/programmers/internal/check_dynamic_properties.mjs +3 -9
- package/lib/programmers/internal/check_everything.js +1 -3
- package/lib/programmers/internal/check_everything.js.map +1 -1
- package/lib/programmers/internal/check_everything.mjs +1 -3
- package/lib/programmers/internal/check_native.js +2 -6
- package/lib/programmers/internal/check_native.js.map +1 -1
- package/lib/programmers/internal/check_native.mjs +2 -6
- package/lib/programmers/internal/check_number.js +2 -6
- package/lib/programmers/internal/check_number.js.map +1 -1
- package/lib/programmers/internal/check_number.mjs +2 -6
- package/lib/programmers/internal/check_object.js +2 -6
- package/lib/programmers/internal/check_object.js.map +1 -1
- package/lib/programmers/internal/check_object.mjs +2 -6
- package/lib/programmers/internal/check_string.js +2 -6
- package/lib/programmers/internal/check_string.js.map +1 -1
- package/lib/programmers/internal/check_string.mjs +2 -6
- package/lib/programmers/internal/check_template.js +1 -3
- package/lib/programmers/internal/check_template.js.map +1 -1
- package/lib/programmers/internal/check_template.mjs +1 -3
- package/lib/programmers/internal/check_union_array_like.js +1 -3
- package/lib/programmers/internal/check_union_array_like.js.map +1 -1
- package/lib/programmers/internal/check_union_array_like.mjs +1 -3
- package/lib/programmers/internal/decode_union_object.js +2 -6
- package/lib/programmers/internal/decode_union_object.js.map +1 -1
- package/lib/programmers/internal/decode_union_object.mjs +2 -6
- package/lib/programmers/internal/feature_object_entries.js +1 -3
- package/lib/programmers/internal/feature_object_entries.js.map +1 -1
- package/lib/programmers/internal/feature_object_entries.mjs +1 -3
- package/lib/programmers/internal/json_schema_escaped.js +2 -6
- package/lib/programmers/internal/json_schema_escaped.js.map +1 -1
- package/lib/programmers/internal/json_schema_escaped.mjs +2 -6
- package/lib/programmers/internal/json_schema_object.js +3 -9
- package/lib/programmers/internal/json_schema_object.js.map +1 -1
- package/lib/programmers/internal/json_schema_object.mjs +3 -9
- package/lib/programmers/internal/metadata_to_pattern.js +1 -3
- package/lib/programmers/internal/metadata_to_pattern.js.map +1 -1
- package/lib/programmers/internal/metadata_to_pattern.mjs +1 -3
- package/lib/programmers/internal/postfix_of_tuple.js +1 -3
- package/lib/programmers/internal/postfix_of_tuple.js.map +1 -1
- package/lib/programmers/internal/postfix_of_tuple.mjs +1 -3
- package/lib/programmers/internal/prune_object_properties.js +1 -3
- package/lib/programmers/internal/prune_object_properties.js.map +1 -1
- package/lib/programmers/internal/prune_object_properties.mjs +1 -3
- package/lib/programmers/internal/stringify_dynamic_properties.js +2 -6
- package/lib/programmers/internal/stringify_dynamic_properties.js.map +1 -1
- package/lib/programmers/internal/stringify_dynamic_properties.mjs +2 -6
- package/lib/programmers/internal/stringify_native.js +1 -3
- package/lib/programmers/internal/stringify_native.js.map +1 -1
- package/lib/programmers/internal/stringify_native.mjs +1 -3
- package/lib/programmers/internal/stringify_regular_properties.js +2 -6
- package/lib/programmers/internal/stringify_regular_properties.js.map +1 -1
- package/lib/programmers/internal/stringify_regular_properties.mjs +2 -6
- package/lib/programmers/internal/template_to_pattern.js +1 -3
- package/lib/programmers/internal/template_to_pattern.js.map +1 -1
- package/lib/programmers/internal/template_to_pattern.mjs +1 -3
- package/lib/programmers/internal/wrap_metadata_rest_tuple.js +1 -3
- package/lib/programmers/internal/wrap_metadata_rest_tuple.js.map +1 -1
- package/lib/programmers/internal/wrap_metadata_rest_tuple.mjs +1 -3
- package/lib/programmers/json/JsonStringifyProgrammer.js +2 -2
- package/lib/programmers/json/JsonStringifyProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonStringifyProgrammer.mjs +2 -2
- package/lib/protobuf.d.mts +290 -297
- package/lib/protobuf.d.ts +290 -297
- package/lib/protobuf.js +17 -51
- package/lib/protobuf.js.map +1 -1
- package/lib/protobuf.mjs +17 -51
- package/lib/reflect.d.mts +2 -4
- package/lib/reflect.d.ts +2 -4
- package/lib/reflect.js +1 -3
- package/lib/reflect.js.map +1 -1
- package/lib/reflect.mjs +1 -3
- package/lib/schemas/json/IJsonApplication.d.mts +4 -4
- package/lib/schemas/json/IJsonApplication.d.ts +4 -4
- package/lib/schemas/json/IJsonSchemaCollection.d.mts +73 -56
- package/lib/schemas/json/IJsonSchemaCollection.d.ts +73 -56
- package/lib/schemas/json/IJsonSchemaUnit.d.mts +83 -70
- package/lib/schemas/json/IJsonSchemaUnit.d.ts +83 -70
- package/lib/schemas/metadata/Metadata.d.mts +1 -3
- package/lib/schemas/metadata/Metadata.d.ts +1 -3
- package/lib/schemas/metadata/Metadata.js +9 -27
- package/lib/schemas/metadata/Metadata.js.map +1 -1
- package/lib/schemas/metadata/Metadata.mjs +9 -27
- package/lib/schemas/metadata/MetadataAliasType.d.mts +1 -3
- package/lib/schemas/metadata/MetadataAliasType.d.ts +1 -3
- package/lib/schemas/metadata/MetadataAliasType.js +3 -9
- package/lib/schemas/metadata/MetadataAliasType.js.map +1 -1
- package/lib/schemas/metadata/MetadataAliasType.mjs +3 -9
- package/lib/schemas/metadata/MetadataApplication.d.mts +1 -3
- package/lib/schemas/metadata/MetadataApplication.d.ts +1 -3
- package/lib/schemas/metadata/MetadataApplication.js +2 -6
- package/lib/schemas/metadata/MetadataApplication.js.map +1 -1
- package/lib/schemas/metadata/MetadataApplication.mjs +2 -6
- package/lib/schemas/metadata/MetadataArray.d.mts +1 -3
- package/lib/schemas/metadata/MetadataArray.d.ts +1 -3
- package/lib/schemas/metadata/MetadataArray.js +1 -3
- package/lib/schemas/metadata/MetadataArray.js.map +1 -1
- package/lib/schemas/metadata/MetadataArray.mjs +1 -3
- package/lib/schemas/metadata/MetadataArrayType.d.mts +1 -3
- package/lib/schemas/metadata/MetadataArrayType.d.ts +1 -3
- package/lib/schemas/metadata/MetadataArrayType.js +3 -9
- package/lib/schemas/metadata/MetadataArrayType.js.map +1 -1
- package/lib/schemas/metadata/MetadataArrayType.mjs +3 -9
- package/lib/schemas/metadata/MetadataAtomic.js +1 -3
- package/lib/schemas/metadata/MetadataAtomic.js.map +1 -1
- package/lib/schemas/metadata/MetadataAtomic.mjs +1 -3
- package/lib/schemas/metadata/MetadataEscaped.d.mts +1 -3
- package/lib/schemas/metadata/MetadataEscaped.d.ts +1 -3
- package/lib/schemas/metadata/MetadataEscaped.js +3 -9
- package/lib/schemas/metadata/MetadataEscaped.js.map +1 -1
- package/lib/schemas/metadata/MetadataEscaped.mjs +3 -9
- package/lib/schemas/metadata/MetadataFunction.d.mts +1 -3
- package/lib/schemas/metadata/MetadataFunction.d.ts +1 -3
- package/lib/schemas/metadata/MetadataFunction.js +2 -6
- package/lib/schemas/metadata/MetadataFunction.js.map +1 -1
- package/lib/schemas/metadata/MetadataFunction.mjs +2 -6
- package/lib/schemas/metadata/MetadataObject.d.mts +1 -3
- package/lib/schemas/metadata/MetadataObject.d.ts +1 -3
- package/lib/schemas/metadata/MetadataObject.js +1 -3
- package/lib/schemas/metadata/MetadataObject.js.map +1 -1
- package/lib/schemas/metadata/MetadataObject.mjs +1 -3
- package/lib/schemas/metadata/MetadataObjectType.d.mts +1 -3
- package/lib/schemas/metadata/MetadataObjectType.d.ts +1 -3
- package/lib/schemas/metadata/MetadataObjectType.js +5 -15
- package/lib/schemas/metadata/MetadataObjectType.js.map +1 -1
- package/lib/schemas/metadata/MetadataObjectType.mjs +6 -18
- package/lib/schemas/metadata/MetadataParameter.js +1 -3
- package/lib/schemas/metadata/MetadataParameter.js.map +1 -1
- package/lib/schemas/metadata/MetadataParameter.mjs +1 -3
- package/lib/schemas/metadata/MetadataProperty.d.mts +1 -3
- package/lib/schemas/metadata/MetadataProperty.d.ts +1 -3
- package/lib/schemas/metadata/MetadataProperty.js +3 -9
- package/lib/schemas/metadata/MetadataProperty.js.map +1 -1
- package/lib/schemas/metadata/MetadataProperty.mjs +3 -9
- package/lib/schemas/metadata/MetadataTemplate.js +1 -3
- package/lib/schemas/metadata/MetadataTemplate.js.map +1 -1
- package/lib/schemas/metadata/MetadataTemplate.mjs +1 -3
- package/lib/schemas/metadata/MetadataTuple.d.mts +1 -3
- package/lib/schemas/metadata/MetadataTuple.d.ts +1 -3
- package/lib/schemas/metadata/MetadataTuple.js +2 -6
- package/lib/schemas/metadata/MetadataTuple.js.map +1 -1
- package/lib/schemas/metadata/MetadataTuple.mjs +2 -6
- package/lib/schemas/metadata/MetadataTupleType.js +2 -6
- package/lib/schemas/metadata/MetadataTupleType.js.map +1 -1
- package/lib/schemas/metadata/MetadataTupleType.mjs +3 -9
- package/lib/tags/Constant.d.mts +16 -16
- package/lib/tags/Constant.d.ts +16 -16
- package/lib/tags/ContentMediaType.d.mts +7 -7
- package/lib/tags/ContentMediaType.d.ts +7 -7
- package/lib/tags/Default.d.mts +19 -19
- package/lib/tags/Default.d.ts +19 -19
- package/lib/tags/Example.d.mts +18 -18
- package/lib/tags/Example.d.ts +18 -18
- package/lib/tags/Examples.d.mts +23 -23
- package/lib/tags/Examples.d.ts +23 -23
- package/lib/tags/ExclusiveMaximum.d.mts +8 -5
- package/lib/tags/ExclusiveMaximum.d.ts +8 -5
- package/lib/tags/ExclusiveMinimum.d.mts +8 -5
- package/lib/tags/ExclusiveMinimum.d.ts +8 -5
- package/lib/tags/Format.d.mts +12 -8
- package/lib/tags/Format.d.ts +12 -8
- package/lib/tags/JsonSchemaPlugin.d.mts +20 -18
- package/lib/tags/JsonSchemaPlugin.d.ts +20 -18
- package/lib/tags/MaxItems.d.mts +9 -9
- package/lib/tags/MaxItems.d.ts +9 -9
- package/lib/tags/MaxLength.d.mts +6 -5
- package/lib/tags/MaxLength.d.ts +6 -5
- package/lib/tags/Maximum.d.mts +9 -7
- package/lib/tags/Maximum.d.ts +9 -7
- package/lib/tags/MinItems.d.mts +9 -9
- package/lib/tags/MinItems.d.ts +9 -9
- package/lib/tags/MinLength.d.mts +6 -5
- package/lib/tags/MinLength.d.ts +6 -5
- package/lib/tags/Minimum.d.mts +9 -7
- package/lib/tags/Minimum.d.ts +9 -7
- package/lib/tags/MultipleOf.d.mts +10 -7
- package/lib/tags/MultipleOf.d.ts +10 -7
- package/lib/tags/Pattern.d.mts +7 -4
- package/lib/tags/Pattern.d.ts +7 -4
- package/lib/tags/Sequence.d.mts +19 -17
- package/lib/tags/Sequence.d.ts +19 -17
- package/lib/tags/TagBase.d.mts +21 -28
- package/lib/tags/TagBase.d.ts +21 -28
- package/lib/tags/Type.d.mts +12 -11
- package/lib/tags/Type.d.ts +12 -11
- package/lib/tags/UniqueItems.d.mts +10 -9
- package/lib/tags/UniqueItems.d.ts +10 -9
- package/lib/tags/internal/FormatCheatSheet.d.mts +1 -3
- package/lib/tags/internal/FormatCheatSheet.d.ts +1 -3
- package/lib/tags/internal/FormatCheatSheet.js +1 -3
- package/lib/tags/internal/FormatCheatSheet.js.map +1 -1
- package/lib/tags/internal/FormatCheatSheet.mjs +1 -3
- package/lib/transformers/ITransformOptions.d.mts +27 -19
- package/lib/transformers/ITransformOptions.d.ts +27 -19
- package/lib/transformers/ImportTransformer.js +5 -10
- package/lib/transformers/ImportTransformer.js.map +1 -1
- package/lib/transformers/ImportTransformer.mjs +5 -10
- package/lib/transformers/NoTransformConfigurationError.js +1 -3
- package/lib/transformers/NoTransformConfigurationError.js.map +1 -1
- package/lib/transformers/NoTransformConfigurationError.mjs +1 -3
- package/lib/transformers/features/llm/LlmApplicationTransformer.js +1 -3
- package/lib/transformers/features/llm/LlmApplicationTransformer.js.map +1 -1
- package/lib/transformers/features/llm/LlmApplicationTransformer.mjs +1 -3
- package/lib/typings/Equal.d.mts +6 -6
- package/lib/typings/Equal.d.ts +6 -6
- package/package.json +2 -1
- package/src/AssertionGuard.ts +27 -25
- package/src/CamelCase.ts +1 -1
- package/src/IRandomGenerator.ts +44 -42
- package/src/IReadableURLSearchParams.ts +2 -2
- package/src/PascalCase.ts +1 -1
- package/src/Primitive.ts +20 -22
- package/src/Resolved.ts +16 -18
- package/src/SnakeCase.ts +3 -2
- package/src/TypeGuardError.ts +101 -64
- package/src/factories/MetadataCollection.ts +4 -12
- package/src/factories/MetadataCommentTagFactory.ts +8 -24
- package/src/factories/MetadataFactory.ts +1 -3
- package/src/factories/ProtobufFactory.ts +1 -3
- package/src/functional.ts +214 -249
- package/src/http.ts +329 -397
- package/src/internal/_ProtobufReader.ts +3 -9
- package/src/internal/_ProtobufSizer.ts +4 -12
- package/src/internal/_ProtobufWriter.ts +5 -15
- package/src/internal/_jsonStringifyString.ts +4 -4
- package/src/json.ts +190 -243
- package/src/llm.ts +279 -204
- package/src/misc.ts +166 -223
- package/src/module.ts +281 -329
- package/src/notations.ts +177 -246
- package/src/programmers/FeatureProgrammer.ts +19 -41
- package/src/programmers/ImportProgrammer.ts +3 -9
- package/src/programmers/RandomProgrammer.ts +6 -1
- package/src/programmers/helpers/ProtobufWire.ts +13 -13
- package/src/programmers/internal/check_array_length.ts +2 -6
- package/src/programmers/internal/check_bigint.ts +2 -6
- package/src/programmers/internal/check_dynamic_key.ts +2 -6
- package/src/programmers/internal/check_dynamic_properties.ts +3 -9
- package/src/programmers/internal/check_everything.ts +1 -3
- package/src/programmers/internal/check_native.ts +2 -6
- package/src/programmers/internal/check_number.ts +2 -6
- package/src/programmers/internal/check_object.ts +3 -9
- package/src/programmers/internal/check_string.ts +2 -6
- package/src/programmers/internal/check_template.ts +1 -3
- package/src/programmers/internal/check_union_array_like.ts +2 -6
- package/src/programmers/internal/decode_union_object.ts +3 -9
- package/src/programmers/internal/feature_object_entries.ts +1 -3
- package/src/programmers/internal/json_schema_escaped.ts +2 -6
- package/src/programmers/internal/json_schema_object.ts +4 -12
- package/src/programmers/internal/metadata_to_pattern.ts +1 -3
- package/src/programmers/internal/postfix_of_tuple.ts +1 -3
- package/src/programmers/internal/prune_object_properties.ts +1 -3
- package/src/programmers/internal/stringify_dynamic_properties.ts +2 -6
- package/src/programmers/internal/stringify_native.ts +1 -3
- package/src/programmers/internal/stringify_regular_properties.ts +2 -6
- package/src/programmers/internal/template_to_pattern.ts +1 -3
- package/src/programmers/internal/wrap_metadata_rest_tuple.ts +1 -3
- package/src/programmers/json/JsonStringifyProgrammer.ts +2 -2
- package/src/protobuf.ts +307 -348
- package/src/reflect.ts +3 -7
- package/src/schemas/json/IJsonApplication.ts +4 -4
- package/src/schemas/json/IJsonSchemaCollection.ts +73 -56
- package/src/schemas/json/IJsonSchemaUnit.ts +83 -70
- package/src/schemas/metadata/IMetadataTypeTag.ts +1 -3
- package/src/schemas/metadata/Metadata.ts +9 -27
- package/src/schemas/metadata/MetadataAliasType.ts +3 -9
- package/src/schemas/metadata/MetadataApplication.ts +2 -6
- package/src/schemas/metadata/MetadataArray.ts +1 -3
- package/src/schemas/metadata/MetadataArrayType.ts +3 -9
- package/src/schemas/metadata/MetadataAtomic.ts +1 -3
- package/src/schemas/metadata/MetadataEscaped.ts +3 -9
- package/src/schemas/metadata/MetadataFunction.ts +2 -6
- package/src/schemas/metadata/MetadataObject.ts +1 -3
- package/src/schemas/metadata/MetadataObjectType.ts +6 -18
- package/src/schemas/metadata/MetadataParameter.ts +1 -3
- package/src/schemas/metadata/MetadataProperty.ts +3 -9
- package/src/schemas/metadata/MetadataTemplate.ts +1 -3
- package/src/schemas/metadata/MetadataTuple.ts +2 -6
- package/src/schemas/metadata/MetadataTupleType.ts +3 -9
- package/src/tags/Constant.ts +16 -16
- package/src/tags/ContentMediaType.ts +7 -7
- package/src/tags/Default.ts +19 -19
- package/src/tags/Example.ts +18 -18
- package/src/tags/Examples.ts +23 -23
- package/src/tags/ExclusiveMaximum.ts +8 -5
- package/src/tags/ExclusiveMinimum.ts +8 -5
- package/src/tags/Format.ts +12 -8
- package/src/tags/JsonSchemaPlugin.ts +20 -18
- package/src/tags/MaxItems.ts +9 -9
- package/src/tags/MaxLength.ts +6 -5
- package/src/tags/Maximum.ts +9 -7
- package/src/tags/MinItems.ts +9 -9
- package/src/tags/MinLength.ts +6 -5
- package/src/tags/Minimum.ts +9 -7
- package/src/tags/MultipleOf.ts +10 -7
- package/src/tags/Pattern.ts +7 -4
- package/src/tags/Sequence.ts +19 -17
- package/src/tags/TagBase.ts +21 -28
- package/src/tags/Type.ts +12 -11
- package/src/tags/UniqueItems.ts +10 -9
- package/src/tags/internal/FormatCheatSheet.ts +1 -3
- package/src/transformers/ITransformOptions.ts +27 -19
- package/src/transformers/ImportTransformer.ts +5 -10
- package/src/transformers/NoTransformConfigurationError.ts +1 -3
- package/src/transformers/features/llm/LlmApplicationTransformer.ts +1 -3
- package/src/typings/Equal.ts +6 -6
package/src/notations.ts
CHANGED
|
@@ -18,27 +18,26 @@ import { TypeGuardError } from "./TypeGuardError";
|
|
|
18
18
|
/**
|
|
19
19
|
* Convert to camel case.
|
|
20
20
|
*
|
|
21
|
-
* Convert every property names of nested objects to follow the camel case
|
|
21
|
+
* Convert every property names of nested objects to follow the camel case
|
|
22
|
+
* convention.
|
|
22
23
|
*
|
|
23
|
-
* For reference, this `typia.notations.camel()` function does not validate the
|
|
24
|
-
* type. It just believes that the input value is following the type
|
|
25
|
-
* if you can't ensure the input value type, it would be better
|
|
24
|
+
* For reference, this `typia.notations.camel()` function does not validate the
|
|
25
|
+
* input value type. It just believes that the input value is following the type
|
|
26
|
+
* `T`. Therefore, if you can't ensure the input value type, it would be better
|
|
27
|
+
* to call one of them below:
|
|
26
28
|
*
|
|
27
29
|
* - {@link assertCamel}
|
|
28
30
|
* - {@link isCamel}
|
|
29
31
|
* - {@link validateCamel}
|
|
30
32
|
*
|
|
33
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
31
34
|
* @template T Type of the input value
|
|
32
35
|
* @param input Target object
|
|
33
36
|
* @returns Camel case object
|
|
34
|
-
*
|
|
35
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
36
37
|
*/
|
|
37
38
|
export function camel<T>(input: T): CamelCase<T>;
|
|
38
39
|
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
40
|
+
/** @internal */
|
|
42
41
|
export function camel(): never {
|
|
43
42
|
return NoTransformConfigurationError("notations.camel");
|
|
44
43
|
}
|
|
@@ -46,15 +45,15 @@ export function camel(): never {
|
|
|
46
45
|
/**
|
|
47
46
|
* Converts to camel case with type assertion.
|
|
48
47
|
*
|
|
49
|
-
* Convert every property names of nested objects to follow the camel case
|
|
50
|
-
* If the input value does not follow the type `T`, it throws
|
|
48
|
+
* Convert every property names of nested objects to follow the camel case
|
|
49
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
50
|
+
* {@link TypeGuardError}.
|
|
51
51
|
*
|
|
52
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
52
53
|
* @template T Type of the input value
|
|
53
54
|
* @param input Target object
|
|
54
55
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
55
56
|
* @returns Camel case object
|
|
56
|
-
*
|
|
57
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
58
57
|
*/
|
|
59
58
|
export function assertCamel<T>(
|
|
60
59
|
input: T,
|
|
@@ -64,24 +63,22 @@ export function assertCamel<T>(
|
|
|
64
63
|
/**
|
|
65
64
|
* Converts to camel case with type assertion.
|
|
66
65
|
*
|
|
67
|
-
* Convert every property names of nested objects to follow the camel case
|
|
68
|
-
* If the input value does not follow the type `T`, it throws
|
|
66
|
+
* Convert every property names of nested objects to follow the camel case
|
|
67
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
68
|
+
* {@link TypeGuardError}.
|
|
69
69
|
*
|
|
70
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
70
71
|
* @template T Type of the input value
|
|
71
72
|
* @param input Target object
|
|
72
73
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
73
74
|
* @returns Camel case object
|
|
74
|
-
*
|
|
75
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
76
75
|
*/
|
|
77
76
|
export function assertCamel<T>(
|
|
78
77
|
input: unknown,
|
|
79
78
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
80
79
|
): CamelCase<T>;
|
|
81
80
|
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
81
|
+
/** @internal */
|
|
85
82
|
export function assertCamel(): never {
|
|
86
83
|
return NoTransformConfigurationError("notations.assertCamel");
|
|
87
84
|
}
|
|
@@ -89,34 +86,32 @@ export function assertCamel(): never {
|
|
|
89
86
|
/**
|
|
90
87
|
* Converts to camel case with type checking.
|
|
91
88
|
*
|
|
92
|
-
* Convert every property names of nested objects to follow the camel case
|
|
93
|
-
* If the input value does not follow the type `T`, it returns
|
|
89
|
+
* Convert every property names of nested objects to follow the camel case
|
|
90
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
91
|
+
* `null` value instead.
|
|
94
92
|
*
|
|
93
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
95
94
|
* @template T Type of the input value
|
|
96
95
|
* @param input Target object
|
|
97
96
|
* @returns Camel case object when exact type, otherwise null
|
|
98
|
-
*
|
|
99
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
100
97
|
*/
|
|
101
98
|
export function isCamel<T>(input: T): CamelCase<T> | null;
|
|
102
99
|
|
|
103
100
|
/**
|
|
104
101
|
* Converts to camel case with type checking.
|
|
105
102
|
*
|
|
106
|
-
* Convert every property names of nested objects to follow the camel case
|
|
107
|
-
* If the input value does not follow the type `T`, it returns
|
|
103
|
+
* Convert every property names of nested objects to follow the camel case
|
|
104
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
105
|
+
* `null` value instead.
|
|
108
106
|
*
|
|
107
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
109
108
|
* @template T Type of the input value
|
|
110
109
|
* @param input Target object
|
|
111
110
|
* @returns Camel case object when exact type, otherwise null
|
|
112
|
-
*
|
|
113
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
114
111
|
*/
|
|
115
112
|
export function isCamel<T>(input: unknown): CamelCase<T> | null;
|
|
116
113
|
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
114
|
+
/** @internal */
|
|
120
115
|
export function isCamel(): never {
|
|
121
116
|
return NoTransformConfigurationError("notations.isCamel");
|
|
122
117
|
}
|
|
@@ -124,38 +119,36 @@ export function isCamel(): never {
|
|
|
124
119
|
/**
|
|
125
120
|
* Converts to camel case with type validation.
|
|
126
121
|
*
|
|
127
|
-
* Convert every property names of nested objects to follow the camel case
|
|
128
|
-
* If the input value does not follow the type `T`, it returns
|
|
129
|
-
* object. Otherwise, there's no problem on the input
|
|
130
|
-
* would be stored in the `data` property of
|
|
122
|
+
* Convert every property names of nested objects to follow the camel case
|
|
123
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
124
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
125
|
+
* value, camel cased converted data would be stored in the `data` property of
|
|
126
|
+
* the output {@link IValidation.Success} object.
|
|
131
127
|
*
|
|
128
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
132
129
|
* @template T Type of the input value
|
|
133
130
|
* @param input Target object
|
|
134
131
|
* @returns Validation result with camel case object
|
|
135
|
-
*
|
|
136
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
137
132
|
*/
|
|
138
133
|
export function validateCamel<T>(input: T): IValidation<CamelCase<T>>;
|
|
139
134
|
|
|
140
135
|
/**
|
|
141
136
|
* Converts to camel case with type validation.
|
|
142
137
|
*
|
|
143
|
-
* Convert every property names of nested objects to follow the camel case
|
|
144
|
-
* If the input value does not follow the type `T`, it returns
|
|
145
|
-
* object. Otherwise, there's no problem on the input
|
|
146
|
-
* would be stored in the `data` property of
|
|
138
|
+
* Convert every property names of nested objects to follow the camel case
|
|
139
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
140
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
141
|
+
* value, camel cased converted data would be stored in the `data` property of
|
|
142
|
+
* the output {@link IValidation.Success} object.
|
|
147
143
|
*
|
|
144
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
148
145
|
* @template T Type of the input value
|
|
149
146
|
* @param input Target object
|
|
150
147
|
* @returns Validation result with camel case object
|
|
151
|
-
*
|
|
152
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
153
148
|
*/
|
|
154
149
|
export function validateCamel<T>(input: unknown): IValidation<CamelCase<T>>;
|
|
155
150
|
|
|
156
|
-
/**
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
151
|
+
/** @internal */
|
|
159
152
|
export function validateCamel(): never {
|
|
160
153
|
return NoTransformConfigurationError("notations.validateCamel");
|
|
161
154
|
}
|
|
@@ -166,27 +159,26 @@ export function validateCamel(): never {
|
|
|
166
159
|
/**
|
|
167
160
|
* Convert to pascal case.
|
|
168
161
|
*
|
|
169
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
162
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
163
|
+
* convention.
|
|
170
164
|
*
|
|
171
|
-
* For reference, this `typia.notations.pascal()` function does not validate the
|
|
172
|
-
* type. It just believes that the input value is following the type
|
|
173
|
-
* if you can't ensure the input value type, it would be better
|
|
165
|
+
* For reference, this `typia.notations.pascal()` function does not validate the
|
|
166
|
+
* input value type. It just believes that the input value is following the type
|
|
167
|
+
* `T`. Therefore, if you can't ensure the input value type, it would be better
|
|
168
|
+
* to call one of them below:
|
|
174
169
|
*
|
|
175
170
|
* - {@link assertPascal}
|
|
176
171
|
* - {@link isPascal}
|
|
177
172
|
* - {@link validatePascal}
|
|
178
173
|
*
|
|
174
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
179
175
|
* @template T Type of the input value
|
|
180
176
|
* @param input Target object
|
|
181
177
|
* @returns Pascal case object
|
|
182
|
-
*
|
|
183
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
184
178
|
*/
|
|
185
179
|
export function pascal<T>(input: T): PascalCase<T>;
|
|
186
180
|
|
|
187
|
-
/**
|
|
188
|
-
* @internal
|
|
189
|
-
*/
|
|
181
|
+
/** @internal */
|
|
190
182
|
export function pascal(): never {
|
|
191
183
|
return NoTransformConfigurationError("notations.pascal");
|
|
192
184
|
}
|
|
@@ -194,15 +186,15 @@ export function pascal(): never {
|
|
|
194
186
|
/**
|
|
195
187
|
* Converts to pascal case with type assertion.
|
|
196
188
|
*
|
|
197
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
198
|
-
* If the input value does not follow the type `T`, it throws
|
|
189
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
190
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
191
|
+
* {@link TypeGuardError}.
|
|
199
192
|
*
|
|
193
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
200
194
|
* @template T Type of the input value
|
|
201
195
|
* @param input Target object
|
|
202
196
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
203
197
|
* @returns Pascal case object
|
|
204
|
-
*
|
|
205
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
206
198
|
*/
|
|
207
199
|
export function assertPascal<T>(
|
|
208
200
|
input: T,
|
|
@@ -212,24 +204,22 @@ export function assertPascal<T>(
|
|
|
212
204
|
/**
|
|
213
205
|
* Converts to pascal case with type assertion.
|
|
214
206
|
*
|
|
215
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
216
|
-
* If the input value does not follow the type `T`, it throws
|
|
207
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
208
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
209
|
+
* {@link TypeGuardError}.
|
|
217
210
|
*
|
|
211
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
218
212
|
* @template T Type of the input value
|
|
219
213
|
* @param input Target object
|
|
220
214
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
221
215
|
* @returns Pascal case object
|
|
222
|
-
*
|
|
223
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
224
216
|
*/
|
|
225
217
|
export function assertPascal<T>(
|
|
226
218
|
input: unknown,
|
|
227
219
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
228
220
|
): PascalCase<T>;
|
|
229
221
|
|
|
230
|
-
/**
|
|
231
|
-
* @internal
|
|
232
|
-
*/
|
|
222
|
+
/** @internal */
|
|
233
223
|
export function assertPascal(): never {
|
|
234
224
|
return NoTransformConfigurationError("notations.assertPascal");
|
|
235
225
|
}
|
|
@@ -237,34 +227,32 @@ export function assertPascal(): never {
|
|
|
237
227
|
/**
|
|
238
228
|
* Converts to pascal case with type checking.
|
|
239
229
|
*
|
|
240
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
241
|
-
* If the input value does not follow the type `T`, it returns
|
|
230
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
231
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
232
|
+
* `null` value instead.
|
|
242
233
|
*
|
|
234
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
243
235
|
* @template T Type of the input value
|
|
244
236
|
* @param input Target object
|
|
245
237
|
* @returns Pascal case object when exact type, otherwise null
|
|
246
|
-
*
|
|
247
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
248
238
|
*/
|
|
249
239
|
export function isPascal<T>(input: T): PascalCase<T> | null;
|
|
250
240
|
|
|
251
241
|
/**
|
|
252
242
|
* Converts to pascal case with type checking.
|
|
253
243
|
*
|
|
254
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
255
|
-
* If the input value does not follow the type `T`, it returns
|
|
244
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
245
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
246
|
+
* `null` value instead.
|
|
256
247
|
*
|
|
248
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
257
249
|
* @template T Type of the input value
|
|
258
250
|
* @param input Target object
|
|
259
251
|
* @returns Pascal case object when exact type, otherwise null
|
|
260
|
-
*
|
|
261
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
262
252
|
*/
|
|
263
253
|
export function isPascal<T>(input: unknown): PascalCase<T> | null;
|
|
264
254
|
|
|
265
|
-
/**
|
|
266
|
-
* @internal
|
|
267
|
-
*/
|
|
255
|
+
/** @internal */
|
|
268
256
|
export function isPascal(): never {
|
|
269
257
|
return NoTransformConfigurationError("notations.isPascal");
|
|
270
258
|
}
|
|
@@ -272,38 +260,36 @@ export function isPascal(): never {
|
|
|
272
260
|
/**
|
|
273
261
|
* Converts to pascal case with type validation.
|
|
274
262
|
*
|
|
275
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
276
|
-
* If the input value does not follow the type `T`, it returns
|
|
277
|
-
* object. Otherwise, there's no problem on the input
|
|
278
|
-
* would be stored in the `data` property of
|
|
263
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
264
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
265
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
266
|
+
* value, pascal cased converted data would be stored in the `data` property of
|
|
267
|
+
* the output {@link IValidation.Success} object.
|
|
279
268
|
*
|
|
269
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
280
270
|
* @template T Type of the input value
|
|
281
271
|
* @param input Target object
|
|
282
272
|
* @returns Validation result with pascal case object
|
|
283
|
-
*
|
|
284
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
285
273
|
*/
|
|
286
274
|
export function validatePascal<T>(input: T): IValidation<PascalCase<T>>;
|
|
287
275
|
|
|
288
276
|
/**
|
|
289
277
|
* Converts to pascal case with type validation.
|
|
290
278
|
*
|
|
291
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
292
|
-
* If the input value does not follow the type `T`, it returns
|
|
293
|
-
* object. Otherwise, there's no problem on the input
|
|
294
|
-
* would be stored in the `data` property of
|
|
279
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
280
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
281
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
282
|
+
* value, pascal cased converted data would be stored in the `data` property of
|
|
283
|
+
* the output {@link IValidation.Success} object.
|
|
295
284
|
*
|
|
285
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
296
286
|
* @template T Type of the input value
|
|
297
287
|
* @param input Target object
|
|
298
288
|
* @returns Validation result with pascal case object
|
|
299
|
-
*
|
|
300
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
301
289
|
*/
|
|
302
290
|
export function validatePascal<T>(input: unknown): IValidation<PascalCase<T>>;
|
|
303
291
|
|
|
304
|
-
/**
|
|
305
|
-
* @internal
|
|
306
|
-
*/
|
|
292
|
+
/** @internal */
|
|
307
293
|
export function validatePascal(): never {
|
|
308
294
|
return NoTransformConfigurationError("notations.validatePascal");
|
|
309
295
|
}
|
|
@@ -314,27 +300,26 @@ export function validatePascal(): never {
|
|
|
314
300
|
/**
|
|
315
301
|
* Convert to snake case.
|
|
316
302
|
*
|
|
317
|
-
* Convert every property names of nested objects to follow the snake case
|
|
303
|
+
* Convert every property names of nested objects to follow the snake case
|
|
304
|
+
* convention.
|
|
318
305
|
*
|
|
319
|
-
* For reference, this `typia.notations.snake()` function does not validate the
|
|
320
|
-
* type. It just believes that the input value is following the type
|
|
321
|
-
* if you can't ensure the input value type, it would be better
|
|
306
|
+
* For reference, this `typia.notations.snake()` function does not validate the
|
|
307
|
+
* input value type. It just believes that the input value is following the type
|
|
308
|
+
* `T`. Therefore, if you can't ensure the input value type, it would be better
|
|
309
|
+
* to call one of them below:
|
|
322
310
|
*
|
|
323
311
|
* - {@link assertSnake}
|
|
324
312
|
* - {@link isSnake}
|
|
325
313
|
* - {@link validateSnake}
|
|
326
314
|
*
|
|
315
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
327
316
|
* @template T Type of the input value
|
|
328
317
|
* @param input Target object
|
|
329
318
|
* @returns Snake case object
|
|
330
|
-
*
|
|
331
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
332
319
|
*/
|
|
333
320
|
export function snake<T>(input: T): SnakeCase<T>;
|
|
334
321
|
|
|
335
|
-
/**
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
322
|
+
/** @internal */
|
|
338
323
|
export function snake(): never {
|
|
339
324
|
return NoTransformConfigurationError("notations.snake");
|
|
340
325
|
}
|
|
@@ -342,15 +327,15 @@ export function snake(): never {
|
|
|
342
327
|
/**
|
|
343
328
|
* Converts to snake case with type assertion.
|
|
344
329
|
*
|
|
345
|
-
* Convert every property names of nested objects to follow the snake case
|
|
346
|
-
* If the input value does not follow the type `T`, it throws
|
|
330
|
+
* Convert every property names of nested objects to follow the snake case
|
|
331
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
332
|
+
* {@link TypeGuardError}.
|
|
347
333
|
*
|
|
334
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
348
335
|
* @template T Type of the input value
|
|
349
336
|
* @param input Target object
|
|
350
337
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
351
338
|
* @returns Snake case object
|
|
352
|
-
*
|
|
353
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
354
339
|
*/
|
|
355
340
|
export function assertSnake<T>(
|
|
356
341
|
input: T,
|
|
@@ -360,24 +345,22 @@ export function assertSnake<T>(
|
|
|
360
345
|
/**
|
|
361
346
|
* Converts to snake case with type assertion.
|
|
362
347
|
*
|
|
363
|
-
* Convert every property names of nested objects to follow the snake case
|
|
364
|
-
* If the input value does not follow the type `T`, it throws
|
|
348
|
+
* Convert every property names of nested objects to follow the snake case
|
|
349
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
350
|
+
* {@link TypeGuardError}.
|
|
365
351
|
*
|
|
352
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
366
353
|
* @template T Type of the input value
|
|
367
354
|
* @param input Target object
|
|
368
355
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
369
356
|
* @returns Snake case object
|
|
370
|
-
*
|
|
371
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
372
357
|
*/
|
|
373
358
|
export function assertSnake<T>(
|
|
374
359
|
input: unknown,
|
|
375
360
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
376
361
|
): SnakeCase<T>;
|
|
377
362
|
|
|
378
|
-
/**
|
|
379
|
-
* @internal
|
|
380
|
-
*/
|
|
363
|
+
/** @internal */
|
|
381
364
|
export function assertSnake(): never {
|
|
382
365
|
return NoTransformConfigurationError("notations.assertSnake");
|
|
383
366
|
}
|
|
@@ -385,34 +368,32 @@ export function assertSnake(): never {
|
|
|
385
368
|
/**
|
|
386
369
|
* Converts to snake case with type checking.
|
|
387
370
|
*
|
|
388
|
-
* Convert every property names of nested objects to follow the snake case
|
|
389
|
-
* If the input value does not follow the type `T`, it returns
|
|
371
|
+
* Convert every property names of nested objects to follow the snake case
|
|
372
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
373
|
+
* `null` value instead.
|
|
390
374
|
*
|
|
375
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
391
376
|
* @template T Type of the input value
|
|
392
377
|
* @param input Target object
|
|
393
378
|
* @returns Snake case object when exact type, otherwise null
|
|
394
|
-
*
|
|
395
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
396
379
|
*/
|
|
397
380
|
export function isSnake<T>(input: T): SnakeCase<T> | null;
|
|
398
381
|
|
|
399
382
|
/**
|
|
400
383
|
* Converts to snake case with type checking.
|
|
401
384
|
*
|
|
402
|
-
* Convert every property names of nested objects to follow the snake case
|
|
403
|
-
* If the input value does not follow the type `T`, it returns
|
|
385
|
+
* Convert every property names of nested objects to follow the snake case
|
|
386
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
387
|
+
* `null` value instead.
|
|
404
388
|
*
|
|
389
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
405
390
|
* @template T Type of the input value
|
|
406
391
|
* @param input Target object
|
|
407
392
|
* @returns Snake case object when exact type, otherwise null
|
|
408
|
-
*
|
|
409
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
410
393
|
*/
|
|
411
394
|
export function isSnake<T>(input: unknown): SnakeCase<T> | null;
|
|
412
395
|
|
|
413
|
-
/**
|
|
414
|
-
* @internal
|
|
415
|
-
*/
|
|
396
|
+
/** @internal */
|
|
416
397
|
export function isSnake(): never {
|
|
417
398
|
return NoTransformConfigurationError("notations.isSnake");
|
|
418
399
|
}
|
|
@@ -420,38 +401,36 @@ export function isSnake(): never {
|
|
|
420
401
|
/**
|
|
421
402
|
* Converts to snake case with type validation.
|
|
422
403
|
*
|
|
423
|
-
* Convert every property names of nested objects to follow the snake case
|
|
424
|
-
* If the input value does not follow the type `T`, it returns
|
|
425
|
-
* object. Otherwise, there's no problem on the input
|
|
426
|
-
* would be stored in the `data` property of
|
|
404
|
+
* Convert every property names of nested objects to follow the snake case
|
|
405
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
406
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
407
|
+
* value, snake cased converted data would be stored in the `data` property of
|
|
408
|
+
* the output {@link IValidation.Success} object.
|
|
427
409
|
*
|
|
410
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
428
411
|
* @template T Type of the input value
|
|
429
412
|
* @param input Target object
|
|
430
413
|
* @returns Validation result with snake case object
|
|
431
|
-
*
|
|
432
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
433
414
|
*/
|
|
434
415
|
export function validateSnake<T>(input: T): IValidation<SnakeCase<T>>;
|
|
435
416
|
|
|
436
417
|
/**
|
|
437
418
|
* Converts to snake case with type validation.
|
|
438
419
|
*
|
|
439
|
-
* Convert every property names of nested objects to follow the snake case
|
|
440
|
-
* If the input value does not follow the type `T`, it returns
|
|
441
|
-
* object. Otherwise, there's no problem on the input
|
|
442
|
-
* would be stored in the `data` property of
|
|
420
|
+
* Convert every property names of nested objects to follow the snake case
|
|
421
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
422
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
423
|
+
* value, snake cased converted data would be stored in the `data` property of
|
|
424
|
+
* the output {@link IValidation.Success} object.
|
|
443
425
|
*
|
|
426
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
444
427
|
* @template T Type of the input value
|
|
445
428
|
* @param input Target object
|
|
446
429
|
* @returns Validation result with snake case object
|
|
447
|
-
*
|
|
448
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
449
430
|
*/
|
|
450
431
|
export function validateSnake<T>(input: unknown): IValidation<SnakeCase<T>>;
|
|
451
432
|
|
|
452
|
-
/**
|
|
453
|
-
* @internal
|
|
454
|
-
*/
|
|
433
|
+
/** @internal */
|
|
455
434
|
export function validateSnake(): never {
|
|
456
435
|
return NoTransformConfigurationError("notations.validateSnake");
|
|
457
436
|
}
|
|
@@ -462,27 +441,23 @@ export function validateSnake(): never {
|
|
|
462
441
|
/**
|
|
463
442
|
* Creates a reusable {@link camel} function.
|
|
464
443
|
*
|
|
465
|
-
* @danger You must configure the generic argument `T`
|
|
466
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
467
|
-
* @throws compile error
|
|
468
|
-
*
|
|
469
444
|
* @author Jeongho Nam - https://github.com/samchon
|
|
445
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
446
|
+
* @throws Compile error
|
|
447
|
+
* @danger You must configure the generic argument `T`
|
|
470
448
|
*/
|
|
471
449
|
export function createCamel(): never;
|
|
472
450
|
|
|
473
451
|
/**
|
|
474
452
|
* Creates a reusable {@link camel} function.
|
|
475
453
|
*
|
|
454
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
476
455
|
* @template T Type of the input value
|
|
477
456
|
* @returns A reusable `camel` function
|
|
478
|
-
*
|
|
479
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
480
457
|
*/
|
|
481
458
|
export function createCamel<T>(): (input: T) => CamelCase<T>;
|
|
482
459
|
|
|
483
|
-
/**
|
|
484
|
-
* @internal
|
|
485
|
-
*/
|
|
460
|
+
/** @internal */
|
|
486
461
|
export function createCamel(): never {
|
|
487
462
|
NoTransformConfigurationError("notations.createCamel");
|
|
488
463
|
}
|
|
@@ -490,12 +465,11 @@ export function createCamel(): never {
|
|
|
490
465
|
/**
|
|
491
466
|
* Creates a reusable {@link assertCamel} function.
|
|
492
467
|
*
|
|
493
|
-
* @
|
|
468
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
494
469
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
495
470
|
* @returns Nothing until be configure the generic argument `T`
|
|
496
|
-
* @throws
|
|
497
|
-
*
|
|
498
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
471
|
+
* @throws Compile error
|
|
472
|
+
* @danger You must configure the generic argument `T`
|
|
499
473
|
*/
|
|
500
474
|
export function createAssertCamel(
|
|
501
475
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
@@ -504,19 +478,16 @@ export function createAssertCamel(
|
|
|
504
478
|
/**
|
|
505
479
|
* Creates a reusable {@link assertCamel} function.
|
|
506
480
|
*
|
|
481
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
507
482
|
* @template T Type of the input value
|
|
508
483
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
509
484
|
* @returns A reusable `assertCamel` function
|
|
510
|
-
*
|
|
511
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
512
485
|
*/
|
|
513
486
|
export function createAssertCamel<T>(
|
|
514
487
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
515
488
|
): (input: T) => CamelCase<T>;
|
|
516
489
|
|
|
517
|
-
/**
|
|
518
|
-
* @internal
|
|
519
|
-
*/
|
|
490
|
+
/** @internal */
|
|
520
491
|
export function createAssertCamel(): never {
|
|
521
492
|
NoTransformConfigurationError("notations.createAssertCamel");
|
|
522
493
|
}
|
|
@@ -524,27 +495,23 @@ export function createAssertCamel(): never {
|
|
|
524
495
|
/**
|
|
525
496
|
* Creates a reusable {@link isCamel} function.
|
|
526
497
|
*
|
|
527
|
-
* @danger You must configure the generic argument `T`
|
|
528
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
529
|
-
* @throws compile error
|
|
530
|
-
*
|
|
531
498
|
* @author Jeongho Nam - https://github.com/samchon
|
|
499
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
500
|
+
* @throws Compile error
|
|
501
|
+
* @danger You must configure the generic argument `T`
|
|
532
502
|
*/
|
|
533
503
|
export function createIsCamel(): never;
|
|
534
504
|
|
|
535
505
|
/**
|
|
536
506
|
* Creates a reusable {@link isCamel} function.
|
|
537
507
|
*
|
|
508
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
538
509
|
* @template T Type of the input value
|
|
539
510
|
* @returns A reusable `isCamel` function
|
|
540
|
-
*
|
|
541
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
542
511
|
*/
|
|
543
512
|
export function createIsCamel<T>(): (input: T) => CamelCase<T> | null;
|
|
544
513
|
|
|
545
|
-
/**
|
|
546
|
-
* @internal
|
|
547
|
-
*/
|
|
514
|
+
/** @internal */
|
|
548
515
|
export function createIsCamel(): never {
|
|
549
516
|
NoTransformConfigurationError("notations.createIsCamel");
|
|
550
517
|
}
|
|
@@ -552,29 +519,25 @@ export function createIsCamel(): never {
|
|
|
552
519
|
/**
|
|
553
520
|
* Creates a reusable {@link validateCamel} function.
|
|
554
521
|
*
|
|
555
|
-
* @danger You must configure the generic argument `T`
|
|
556
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
557
|
-
* @throws compile error
|
|
558
|
-
*
|
|
559
522
|
* @author Jeongho Nam - https://github.com/samchon
|
|
523
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
524
|
+
* @throws Compile error
|
|
525
|
+
* @danger You must configure the generic argument `T`
|
|
560
526
|
*/
|
|
561
527
|
export function createValidateCamel(): never;
|
|
562
528
|
|
|
563
529
|
/**
|
|
564
530
|
* Creates a reusable {@link validateCamel} function.
|
|
565
531
|
*
|
|
532
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
566
533
|
* @template T Type of the input value
|
|
567
534
|
* @returns A reusable `validateCamel` function
|
|
568
|
-
*
|
|
569
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
570
535
|
*/
|
|
571
536
|
export function createValidateCamel<T>(): (
|
|
572
537
|
input: T,
|
|
573
538
|
) => IValidation<CamelCase<T>>;
|
|
574
539
|
|
|
575
|
-
/**
|
|
576
|
-
* @internal
|
|
577
|
-
*/
|
|
540
|
+
/** @internal */
|
|
578
541
|
export function createValidateCamel(): never {
|
|
579
542
|
NoTransformConfigurationError("notations.createValidateCamel");
|
|
580
543
|
}
|
|
@@ -582,27 +545,23 @@ export function createValidateCamel(): never {
|
|
|
582
545
|
/**
|
|
583
546
|
* Creates a reusable {@link pascal} function.
|
|
584
547
|
*
|
|
585
|
-
* @danger You must configure the generic argument `T`
|
|
586
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
587
|
-
* @throws compile error
|
|
588
|
-
*
|
|
589
548
|
* @author Jeongho Nam - https://github.com/samchon
|
|
549
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
550
|
+
* @throws Compile error
|
|
551
|
+
* @danger You must configure the generic argument `T`
|
|
590
552
|
*/
|
|
591
553
|
export function createPascal(): never;
|
|
592
554
|
|
|
593
555
|
/**
|
|
594
556
|
* Creates a reusable {@link pascal} function.
|
|
595
557
|
*
|
|
558
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
596
559
|
* @template T Type of the input value
|
|
597
560
|
* @returns A reusable `pascal` function
|
|
598
|
-
*
|
|
599
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
600
561
|
*/
|
|
601
562
|
export function createPascal<T>(): (input: T) => PascalCase<T>;
|
|
602
563
|
|
|
603
|
-
/**
|
|
604
|
-
* @internal
|
|
605
|
-
*/
|
|
564
|
+
/** @internal */
|
|
606
565
|
export function createPascal(): never {
|
|
607
566
|
NoTransformConfigurationError("notations.createPascal");
|
|
608
567
|
}
|
|
@@ -610,12 +569,11 @@ export function createPascal(): never {
|
|
|
610
569
|
/**
|
|
611
570
|
* Creates a reusable {@link assertPascal} function.
|
|
612
571
|
*
|
|
613
|
-
* @
|
|
572
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
614
573
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
615
574
|
* @returns Nothing until be configure the generic argument `T`
|
|
616
|
-
* @throws
|
|
617
|
-
*
|
|
618
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
575
|
+
* @throws Compile error
|
|
576
|
+
* @danger You must configure the generic argument `T`
|
|
619
577
|
*/
|
|
620
578
|
export function createAssertPascal(
|
|
621
579
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
@@ -624,19 +582,16 @@ export function createAssertPascal(
|
|
|
624
582
|
/**
|
|
625
583
|
* Creates a reusable {@link assertPascal} function.
|
|
626
584
|
*
|
|
585
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
627
586
|
* @template T Type of the input value
|
|
628
587
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
629
588
|
* @returns A reusable `assertPascal` function
|
|
630
|
-
*
|
|
631
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
632
589
|
*/
|
|
633
590
|
export function createAssertPascal<T>(
|
|
634
591
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
635
592
|
): (input: T) => PascalCase<T>;
|
|
636
593
|
|
|
637
|
-
/**
|
|
638
|
-
* @internal
|
|
639
|
-
*/
|
|
594
|
+
/** @internal */
|
|
640
595
|
export function createAssertPascal(): never {
|
|
641
596
|
NoTransformConfigurationError("notations.createAssertPascal");
|
|
642
597
|
}
|
|
@@ -644,27 +599,23 @@ export function createAssertPascal(): never {
|
|
|
644
599
|
/**
|
|
645
600
|
* Creates a reusable {@link isPascal} function.
|
|
646
601
|
*
|
|
647
|
-
* @danger You must configure the generic argument `T`
|
|
648
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
649
|
-
* @throws compile error
|
|
650
|
-
*
|
|
651
602
|
* @author Jeongho Nam - https://github.com/samchon
|
|
603
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
604
|
+
* @throws Compile error
|
|
605
|
+
* @danger You must configure the generic argument `T`
|
|
652
606
|
*/
|
|
653
607
|
export function createIsPascal(): never;
|
|
654
608
|
|
|
655
609
|
/**
|
|
656
610
|
* Creates a reusable {@link isPascal} function.
|
|
657
611
|
*
|
|
612
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
658
613
|
* @template T Type of the input value
|
|
659
614
|
* @returns A reusable `isPascal` function
|
|
660
|
-
*
|
|
661
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
662
615
|
*/
|
|
663
616
|
export function createIsPascal<T>(): (input: T) => PascalCase<T> | null;
|
|
664
617
|
|
|
665
|
-
/**
|
|
666
|
-
* @internal
|
|
667
|
-
*/
|
|
618
|
+
/** @internal */
|
|
668
619
|
export function createIsPascal(): never {
|
|
669
620
|
NoTransformConfigurationError("notations.createIsPascal");
|
|
670
621
|
}
|
|
@@ -672,29 +623,25 @@ export function createIsPascal(): never {
|
|
|
672
623
|
/**
|
|
673
624
|
* Creates a reusable {@link validatePascal} function.
|
|
674
625
|
*
|
|
675
|
-
* @danger You must configure the generic argument `T`
|
|
676
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
677
|
-
* @throws compile error
|
|
678
|
-
*
|
|
679
626
|
* @author Jeongho Nam - https://github.com/samchon
|
|
627
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
628
|
+
* @throws Compile error
|
|
629
|
+
* @danger You must configure the generic argument `T`
|
|
680
630
|
*/
|
|
681
631
|
export function createValidatePascal(): never;
|
|
682
632
|
|
|
683
633
|
/**
|
|
684
634
|
* Creates a reusable {@link validatePascal} function.
|
|
685
635
|
*
|
|
636
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
686
637
|
* @template T Type of the input value
|
|
687
638
|
* @returns A reusable `validatePascal` function
|
|
688
|
-
*
|
|
689
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
690
639
|
*/
|
|
691
640
|
export function createValidatePascal<T>(): (
|
|
692
641
|
input: T,
|
|
693
642
|
) => IValidation<PascalCase<T>>;
|
|
694
643
|
|
|
695
|
-
/**
|
|
696
|
-
* @internal
|
|
697
|
-
*/
|
|
644
|
+
/** @internal */
|
|
698
645
|
export function createValidatePascal(): never {
|
|
699
646
|
NoTransformConfigurationError("notations.createValidatePascal");
|
|
700
647
|
}
|
|
@@ -702,27 +649,23 @@ export function createValidatePascal(): never {
|
|
|
702
649
|
/**
|
|
703
650
|
* Creates a reusable {@link snake} function.
|
|
704
651
|
*
|
|
705
|
-
* @danger You must configure the generic argument `T`
|
|
706
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
707
|
-
* @throws compile error
|
|
708
|
-
*
|
|
709
652
|
* @author Jeongho Nam - https://github.com/samchon
|
|
653
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
654
|
+
* @throws Compile error
|
|
655
|
+
* @danger You must configure the generic argument `T`
|
|
710
656
|
*/
|
|
711
657
|
export function createSnake(): never;
|
|
712
658
|
|
|
713
659
|
/**
|
|
714
660
|
* Creates a reusable {@link snake} function.
|
|
715
661
|
*
|
|
662
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
716
663
|
* @template T Type of the input value
|
|
717
664
|
* @returns A reusable `snake` function
|
|
718
|
-
*
|
|
719
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
720
665
|
*/
|
|
721
666
|
export function createSnake<T>(): (input: T) => SnakeCase<T>;
|
|
722
667
|
|
|
723
|
-
/**
|
|
724
|
-
* @internal
|
|
725
|
-
*/
|
|
668
|
+
/** @internal */
|
|
726
669
|
export function createSnake(): never {
|
|
727
670
|
NoTransformConfigurationError("notations.createSnake");
|
|
728
671
|
}
|
|
@@ -730,12 +673,11 @@ export function createSnake(): never {
|
|
|
730
673
|
/**
|
|
731
674
|
* Creates a reusable {@link assertSnake} function.
|
|
732
675
|
*
|
|
733
|
-
* @
|
|
676
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
734
677
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
735
678
|
* @returns Nothing until be configure the generic argument `T`
|
|
736
|
-
* @throws
|
|
737
|
-
*
|
|
738
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
679
|
+
* @throws Compile error
|
|
680
|
+
* @danger You must configure the generic argument `T`
|
|
739
681
|
*/
|
|
740
682
|
export function createAssertSnake(
|
|
741
683
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
@@ -744,19 +686,16 @@ export function createAssertSnake(
|
|
|
744
686
|
/**
|
|
745
687
|
* Creates a reusable {@link assertSnake} function.
|
|
746
688
|
*
|
|
689
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
747
690
|
* @template T Type of the input value
|
|
748
691
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
749
692
|
* @returns A reusable `assertSnake` function
|
|
750
|
-
*
|
|
751
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
752
693
|
*/
|
|
753
694
|
export function createAssertSnake<T>(
|
|
754
695
|
errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),
|
|
755
696
|
): (input: T) => SnakeCase<T>;
|
|
756
697
|
|
|
757
|
-
/**
|
|
758
|
-
* @internal
|
|
759
|
-
*/
|
|
698
|
+
/** @internal */
|
|
760
699
|
export function createAssertSnake(): never {
|
|
761
700
|
NoTransformConfigurationError("notations.createAssertSnake");
|
|
762
701
|
}
|
|
@@ -764,27 +703,23 @@ export function createAssertSnake(): never {
|
|
|
764
703
|
/**
|
|
765
704
|
* Creates a reusable {@link isSnake} function.
|
|
766
705
|
*
|
|
767
|
-
* @danger You must configure the generic argument `T`
|
|
768
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
769
|
-
* @throws compile error
|
|
770
|
-
*
|
|
771
706
|
* @author Jeongho Nam - https://github.com/samchon
|
|
707
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
708
|
+
* @throws Compile error
|
|
709
|
+
* @danger You must configure the generic argument `T`
|
|
772
710
|
*/
|
|
773
711
|
export function createIsSnake(): never;
|
|
774
712
|
|
|
775
713
|
/**
|
|
776
714
|
* Creates a reusable {@link isSnake} function.
|
|
777
715
|
*
|
|
716
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
778
717
|
* @template T Type of the input value
|
|
779
718
|
* @returns A reusable `isSnake` function
|
|
780
|
-
*
|
|
781
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
782
719
|
*/
|
|
783
720
|
export function createIsSnake<T>(): (input: T) => SnakeCase<T> | null;
|
|
784
721
|
|
|
785
|
-
/**
|
|
786
|
-
* @internal
|
|
787
|
-
*/
|
|
722
|
+
/** @internal */
|
|
788
723
|
export function createIsSnake(): never {
|
|
789
724
|
NoTransformConfigurationError("notations.createIsSnake");
|
|
790
725
|
}
|
|
@@ -792,29 +727,25 @@ export function createIsSnake(): never {
|
|
|
792
727
|
/**
|
|
793
728
|
* Creates a reusable {@link validateSnake} function.
|
|
794
729
|
*
|
|
795
|
-
* @danger You must configure the generic argument `T`
|
|
796
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
797
|
-
* @throws compile error
|
|
798
|
-
*
|
|
799
730
|
* @author Jeongho Nam - https://github.com/samchon
|
|
731
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
732
|
+
* @throws Compile error
|
|
733
|
+
* @danger You must configure the generic argument `T`
|
|
800
734
|
*/
|
|
801
735
|
export function createValidateSnake(): never;
|
|
802
736
|
|
|
803
737
|
/**
|
|
804
738
|
* Creates a reusable {@link validateSnake} function.
|
|
805
739
|
*
|
|
740
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
806
741
|
* @template T Type of the input value
|
|
807
742
|
* @returns A reusable `validateSnake` function
|
|
808
|
-
*
|
|
809
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
810
743
|
*/
|
|
811
744
|
export function createValidateSnake<T>(): (
|
|
812
745
|
input: T,
|
|
813
746
|
) => IValidation<SnakeCase<T>>;
|
|
814
747
|
|
|
815
|
-
/**
|
|
816
|
-
* @internal
|
|
817
|
-
*/
|
|
748
|
+
/** @internal */
|
|
818
749
|
export function createValidateSnake(): never {
|
|
819
750
|
NoTransformConfigurationError("notations.createValidateSnake");
|
|
820
751
|
}
|