typia 9.7.0 → 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/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 +32 -0
- package/lib/tags/Constant.d.ts +32 -0
- package/lib/tags/ContentMediaType.d.mts +17 -0
- package/lib/tags/ContentMediaType.d.ts +17 -0
- package/lib/tags/Default.d.mts +30 -0
- package/lib/tags/Default.d.ts +30 -0
- package/lib/tags/Example.d.mts +32 -0
- package/lib/tags/Example.d.ts +32 -0
- package/lib/tags/Examples.d.mts +40 -0
- package/lib/tags/Examples.d.ts +40 -0
- package/lib/tags/ExclusiveMaximum.d.mts +21 -0
- package/lib/tags/ExclusiveMaximum.d.ts +21 -0
- package/lib/tags/ExclusiveMinimum.d.mts +21 -0
- package/lib/tags/ExclusiveMinimum.d.ts +21 -0
- package/lib/tags/Format.d.mts +28 -0
- package/lib/tags/Format.d.ts +28 -0
- package/lib/tags/JsonSchemaPlugin.d.mts +28 -0
- package/lib/tags/JsonSchemaPlugin.d.ts +28 -0
- package/lib/tags/MaxItems.d.mts +19 -0
- package/lib/tags/MaxItems.d.ts +19 -0
- package/lib/tags/MaxLength.d.mts +13 -0
- package/lib/tags/MaxLength.d.ts +13 -0
- package/lib/tags/Maximum.d.mts +20 -0
- package/lib/tags/Maximum.d.ts +20 -0
- package/lib/tags/MinItems.d.mts +19 -0
- package/lib/tags/MinItems.d.ts +19 -0
- package/lib/tags/MinLength.d.mts +13 -0
- package/lib/tags/MinLength.d.ts +13 -0
- package/lib/tags/Minimum.d.mts +20 -0
- package/lib/tags/Minimum.d.ts +20 -0
- package/lib/tags/MultipleOf.d.mts +21 -0
- package/lib/tags/MultipleOf.d.ts +21 -0
- package/lib/tags/Pattern.d.mts +18 -0
- package/lib/tags/Pattern.d.ts +18 -0
- package/lib/tags/Sequence.d.mts +27 -0
- package/lib/tags/Sequence.d.ts +27 -0
- package/lib/tags/TagBase.d.mts +38 -18
- package/lib/tags/TagBase.d.ts +38 -18
- package/lib/tags/Type.d.mts +27 -0
- package/lib/tags/Type.d.ts +27 -0
- package/lib/tags/UniqueItems.d.mts +20 -0
- package/lib/tags/UniqueItems.d.ts +20 -0
- 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 +114 -1
- package/lib/transformers/ImportTransformer.js.map +1 -1
- package/lib/transformers/ImportTransformer.mjs +114 -1
- 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 +57 -47
- 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/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 +32 -0
- package/src/tags/ContentMediaType.ts +17 -0
- package/src/tags/Default.ts +30 -0
- package/src/tags/Example.ts +32 -0
- package/src/tags/Examples.ts +40 -0
- package/src/tags/ExclusiveMaximum.ts +21 -0
- package/src/tags/ExclusiveMinimum.ts +21 -0
- package/src/tags/Format.ts +28 -0
- package/src/tags/JsonSchemaPlugin.ts +28 -0
- package/src/tags/MaxItems.ts +19 -0
- package/src/tags/MaxLength.ts +13 -0
- package/src/tags/Maximum.ts +20 -0
- package/src/tags/MinItems.ts +19 -0
- package/src/tags/MinLength.ts +13 -0
- package/src/tags/Minimum.ts +20 -0
- package/src/tags/MultipleOf.ts +21 -0
- package/src/tags/Pattern.ts +18 -0
- package/src/tags/Sequence.ts +27 -0
- package/src/tags/TagBase.ts +38 -18
- package/src/tags/Type.ts +27 -0
- package/src/tags/UniqueItems.ts +20 -0
- package/src/tags/internal/FormatCheatSheet.ts +1 -3
- package/src/transformers/ITransformOptions.ts +27 -19
- package/src/transformers/ImportTransformer.ts +173 -1
- package/src/transformers/NoTransformConfigurationError.ts +1 -3
- package/src/transformers/features/llm/LlmApplicationTransformer.ts +1 -3
- package/src/typings/Equal.ts +6 -6
package/lib/notations.d.mts
CHANGED
|
@@ -6,546 +6,525 @@ import { TypeGuardError } from "./TypeGuardError";
|
|
|
6
6
|
/**
|
|
7
7
|
* Convert to camel case.
|
|
8
8
|
*
|
|
9
|
-
* Convert every property names of nested objects to follow the camel case
|
|
9
|
+
* Convert every property names of nested objects to follow the camel case
|
|
10
|
+
* convention.
|
|
10
11
|
*
|
|
11
|
-
* For reference, this `typia.notations.camel()` function does not validate the
|
|
12
|
-
* type. It just believes that the input value is following the type
|
|
13
|
-
* if you can't ensure the input value type, it would be better
|
|
12
|
+
* For reference, this `typia.notations.camel()` function does not validate the
|
|
13
|
+
* input value type. It just believes that the input value is following the type
|
|
14
|
+
* `T`. Therefore, if you can't ensure the input value type, it would be better
|
|
15
|
+
* to call one of them below:
|
|
14
16
|
*
|
|
15
17
|
* - {@link assertCamel}
|
|
16
18
|
* - {@link isCamel}
|
|
17
19
|
* - {@link validateCamel}
|
|
18
20
|
*
|
|
21
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
19
22
|
* @template T Type of the input value
|
|
20
23
|
* @param input Target object
|
|
21
24
|
* @returns Camel case object
|
|
22
|
-
*
|
|
23
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
24
25
|
*/
|
|
25
26
|
export declare function camel<T>(input: T): CamelCase<T>;
|
|
26
27
|
/**
|
|
27
28
|
* Converts to camel case with type assertion.
|
|
28
29
|
*
|
|
29
|
-
* Convert every property names of nested objects to follow the camel case
|
|
30
|
-
* If the input value does not follow the type `T`, it throws
|
|
30
|
+
* Convert every property names of nested objects to follow the camel case
|
|
31
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
32
|
+
* {@link TypeGuardError}.
|
|
31
33
|
*
|
|
34
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
32
35
|
* @template T Type of the input value
|
|
33
36
|
* @param input Target object
|
|
34
37
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
35
38
|
* @returns Camel case object
|
|
36
|
-
*
|
|
37
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
38
39
|
*/
|
|
39
40
|
export declare function assertCamel<T>(input: T, errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): CamelCase<T>;
|
|
40
41
|
/**
|
|
41
42
|
* Converts to camel case with type assertion.
|
|
42
43
|
*
|
|
43
|
-
* Convert every property names of nested objects to follow the camel case
|
|
44
|
-
* If the input value does not follow the type `T`, it throws
|
|
44
|
+
* Convert every property names of nested objects to follow the camel case
|
|
45
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
46
|
+
* {@link TypeGuardError}.
|
|
45
47
|
*
|
|
48
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
46
49
|
* @template T Type of the input value
|
|
47
50
|
* @param input Target object
|
|
48
51
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
49
52
|
* @returns Camel case object
|
|
50
|
-
*
|
|
51
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
52
53
|
*/
|
|
53
54
|
export declare function assertCamel<T>(input: unknown, errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): CamelCase<T>;
|
|
54
55
|
/**
|
|
55
56
|
* Converts to camel case with type checking.
|
|
56
57
|
*
|
|
57
|
-
* Convert every property names of nested objects to follow the camel case
|
|
58
|
-
* If the input value does not follow the type `T`, it returns
|
|
58
|
+
* Convert every property names of nested objects to follow the camel case
|
|
59
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
60
|
+
* `null` value instead.
|
|
59
61
|
*
|
|
62
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
60
63
|
* @template T Type of the input value
|
|
61
64
|
* @param input Target object
|
|
62
65
|
* @returns Camel case object when exact type, otherwise null
|
|
63
|
-
*
|
|
64
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
65
66
|
*/
|
|
66
67
|
export declare function isCamel<T>(input: T): CamelCase<T> | null;
|
|
67
68
|
/**
|
|
68
69
|
* Converts to camel case with type checking.
|
|
69
70
|
*
|
|
70
|
-
* Convert every property names of nested objects to follow the camel case
|
|
71
|
-
* If the input value does not follow the type `T`, it returns
|
|
71
|
+
* Convert every property names of nested objects to follow the camel case
|
|
72
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
73
|
+
* `null` value instead.
|
|
72
74
|
*
|
|
75
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
73
76
|
* @template T Type of the input value
|
|
74
77
|
* @param input Target object
|
|
75
78
|
* @returns Camel case object when exact type, otherwise null
|
|
76
|
-
*
|
|
77
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
78
79
|
*/
|
|
79
80
|
export declare function isCamel<T>(input: unknown): CamelCase<T> | null;
|
|
80
81
|
/**
|
|
81
82
|
* Converts to camel case with type validation.
|
|
82
83
|
*
|
|
83
|
-
* Convert every property names of nested objects to follow the camel case
|
|
84
|
-
* If the input value does not follow the type `T`, it returns
|
|
85
|
-
* object. Otherwise, there's no problem on the input
|
|
86
|
-
* would be stored in the `data` property of
|
|
84
|
+
* Convert every property names of nested objects to follow the camel case
|
|
85
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
86
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
87
|
+
* value, camel cased converted data would be stored in the `data` property of
|
|
88
|
+
* the output {@link IValidation.Success} object.
|
|
87
89
|
*
|
|
90
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
88
91
|
* @template T Type of the input value
|
|
89
92
|
* @param input Target object
|
|
90
93
|
* @returns Validation result with camel case object
|
|
91
|
-
*
|
|
92
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
93
94
|
*/
|
|
94
95
|
export declare function validateCamel<T>(input: T): IValidation<CamelCase<T>>;
|
|
95
96
|
/**
|
|
96
97
|
* Converts to camel case with type validation.
|
|
97
98
|
*
|
|
98
|
-
* Convert every property names of nested objects to follow the camel case
|
|
99
|
-
* If the input value does not follow the type `T`, it returns
|
|
100
|
-
* object. Otherwise, there's no problem on the input
|
|
101
|
-
* would be stored in the `data` property of
|
|
99
|
+
* Convert every property names of nested objects to follow the camel case
|
|
100
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
101
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
102
|
+
* value, camel cased converted data would be stored in the `data` property of
|
|
103
|
+
* the output {@link IValidation.Success} object.
|
|
102
104
|
*
|
|
105
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
103
106
|
* @template T Type of the input value
|
|
104
107
|
* @param input Target object
|
|
105
108
|
* @returns Validation result with camel case object
|
|
106
|
-
*
|
|
107
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
108
109
|
*/
|
|
109
110
|
export declare function validateCamel<T>(input: unknown): IValidation<CamelCase<T>>;
|
|
110
111
|
/**
|
|
111
112
|
* Convert to pascal case.
|
|
112
113
|
*
|
|
113
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
114
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
115
|
+
* convention.
|
|
114
116
|
*
|
|
115
|
-
* For reference, this `typia.notations.pascal()` function does not validate the
|
|
116
|
-
* type. It just believes that the input value is following the type
|
|
117
|
-
* if you can't ensure the input value type, it would be better
|
|
117
|
+
* For reference, this `typia.notations.pascal()` function does not validate the
|
|
118
|
+
* input value type. It just believes that the input value is following the type
|
|
119
|
+
* `T`. Therefore, if you can't ensure the input value type, it would be better
|
|
120
|
+
* to call one of them below:
|
|
118
121
|
*
|
|
119
122
|
* - {@link assertPascal}
|
|
120
123
|
* - {@link isPascal}
|
|
121
124
|
* - {@link validatePascal}
|
|
122
125
|
*
|
|
126
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
123
127
|
* @template T Type of the input value
|
|
124
128
|
* @param input Target object
|
|
125
129
|
* @returns Pascal case object
|
|
126
|
-
*
|
|
127
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
128
130
|
*/
|
|
129
131
|
export declare function pascal<T>(input: T): PascalCase<T>;
|
|
130
132
|
/**
|
|
131
133
|
* Converts to pascal case with type assertion.
|
|
132
134
|
*
|
|
133
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
134
|
-
* If the input value does not follow the type `T`, it throws
|
|
135
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
136
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
137
|
+
* {@link TypeGuardError}.
|
|
135
138
|
*
|
|
139
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
136
140
|
* @template T Type of the input value
|
|
137
141
|
* @param input Target object
|
|
138
142
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
139
143
|
* @returns Pascal case object
|
|
140
|
-
*
|
|
141
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
142
144
|
*/
|
|
143
145
|
export declare function assertPascal<T>(input: T, errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): PascalCase<T>;
|
|
144
146
|
/**
|
|
145
147
|
* Converts to pascal case with type assertion.
|
|
146
148
|
*
|
|
147
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
148
|
-
* If the input value does not follow the type `T`, it throws
|
|
149
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
150
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
151
|
+
* {@link TypeGuardError}.
|
|
149
152
|
*
|
|
153
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
150
154
|
* @template T Type of the input value
|
|
151
155
|
* @param input Target object
|
|
152
156
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
153
157
|
* @returns Pascal case object
|
|
154
|
-
*
|
|
155
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
156
158
|
*/
|
|
157
159
|
export declare function assertPascal<T>(input: unknown, errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): PascalCase<T>;
|
|
158
160
|
/**
|
|
159
161
|
* Converts to pascal case with type checking.
|
|
160
162
|
*
|
|
161
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
162
|
-
* If the input value does not follow the type `T`, it returns
|
|
163
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
164
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
165
|
+
* `null` value instead.
|
|
163
166
|
*
|
|
167
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
164
168
|
* @template T Type of the input value
|
|
165
169
|
* @param input Target object
|
|
166
170
|
* @returns Pascal case object when exact type, otherwise null
|
|
167
|
-
*
|
|
168
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
169
171
|
*/
|
|
170
172
|
export declare function isPascal<T>(input: T): PascalCase<T> | null;
|
|
171
173
|
/**
|
|
172
174
|
* Converts to pascal case with type checking.
|
|
173
175
|
*
|
|
174
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
175
|
-
* If the input value does not follow the type `T`, it returns
|
|
176
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
177
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
178
|
+
* `null` value instead.
|
|
176
179
|
*
|
|
180
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
177
181
|
* @template T Type of the input value
|
|
178
182
|
* @param input Target object
|
|
179
183
|
* @returns Pascal case object when exact type, otherwise null
|
|
180
|
-
*
|
|
181
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
182
184
|
*/
|
|
183
185
|
export declare function isPascal<T>(input: unknown): PascalCase<T> | null;
|
|
184
186
|
/**
|
|
185
187
|
* Converts to pascal case with type validation.
|
|
186
188
|
*
|
|
187
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
188
|
-
* If the input value does not follow the type `T`, it returns
|
|
189
|
-
* object. Otherwise, there's no problem on the input
|
|
190
|
-
* would be stored in the `data` property of
|
|
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 returns
|
|
191
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
192
|
+
* value, pascal cased converted data would be stored in the `data` property of
|
|
193
|
+
* the output {@link IValidation.Success} object.
|
|
191
194
|
*
|
|
195
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
192
196
|
* @template T Type of the input value
|
|
193
197
|
* @param input Target object
|
|
194
198
|
* @returns Validation result with pascal case object
|
|
195
|
-
*
|
|
196
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
197
199
|
*/
|
|
198
200
|
export declare function validatePascal<T>(input: T): IValidation<PascalCase<T>>;
|
|
199
201
|
/**
|
|
200
202
|
* Converts to pascal case with type validation.
|
|
201
203
|
*
|
|
202
|
-
* Convert every property names of nested objects to follow the pascal case
|
|
203
|
-
* If the input value does not follow the type `T`, it returns
|
|
204
|
-
* object. Otherwise, there's no problem on the input
|
|
205
|
-
* would be stored in the `data` property of
|
|
204
|
+
* Convert every property names of nested objects to follow the pascal case
|
|
205
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
206
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
207
|
+
* value, pascal cased converted data would be stored in the `data` property of
|
|
208
|
+
* the output {@link IValidation.Success} object.
|
|
206
209
|
*
|
|
210
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
207
211
|
* @template T Type of the input value
|
|
208
212
|
* @param input Target object
|
|
209
213
|
* @returns Validation result with pascal case object
|
|
210
|
-
*
|
|
211
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
212
214
|
*/
|
|
213
215
|
export declare function validatePascal<T>(input: unknown): IValidation<PascalCase<T>>;
|
|
214
216
|
/**
|
|
215
217
|
* Convert to snake case.
|
|
216
218
|
*
|
|
217
|
-
* Convert every property names of nested objects to follow the snake case
|
|
219
|
+
* Convert every property names of nested objects to follow the snake case
|
|
220
|
+
* convention.
|
|
218
221
|
*
|
|
219
|
-
* For reference, this `typia.notations.snake()` function does not validate the
|
|
220
|
-
* type. It just believes that the input value is following the type
|
|
221
|
-
* if you can't ensure the input value type, it would be better
|
|
222
|
+
* For reference, this `typia.notations.snake()` function does not validate the
|
|
223
|
+
* input value type. It just believes that the input value is following the type
|
|
224
|
+
* `T`. Therefore, if you can't ensure the input value type, it would be better
|
|
225
|
+
* to call one of them below:
|
|
222
226
|
*
|
|
223
227
|
* - {@link assertSnake}
|
|
224
228
|
* - {@link isSnake}
|
|
225
229
|
* - {@link validateSnake}
|
|
226
230
|
*
|
|
231
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
227
232
|
* @template T Type of the input value
|
|
228
233
|
* @param input Target object
|
|
229
234
|
* @returns Snake case object
|
|
230
|
-
*
|
|
231
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
232
235
|
*/
|
|
233
236
|
export declare function snake<T>(input: T): SnakeCase<T>;
|
|
234
237
|
/**
|
|
235
238
|
* Converts to snake case with type assertion.
|
|
236
239
|
*
|
|
237
|
-
* Convert every property names of nested objects to follow the snake case
|
|
238
|
-
* If the input value does not follow the type `T`, it throws
|
|
240
|
+
* Convert every property names of nested objects to follow the snake case
|
|
241
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
242
|
+
* {@link TypeGuardError}.
|
|
239
243
|
*
|
|
244
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
240
245
|
* @template T Type of the input value
|
|
241
246
|
* @param input Target object
|
|
242
247
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
243
248
|
* @returns Snake case object
|
|
244
|
-
*
|
|
245
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
246
249
|
*/
|
|
247
250
|
export declare function assertSnake<T>(input: T, errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): SnakeCase<T>;
|
|
248
251
|
/**
|
|
249
252
|
* Converts to snake case with type assertion.
|
|
250
253
|
*
|
|
251
|
-
* Convert every property names of nested objects to follow the snake case
|
|
252
|
-
* If the input value does not follow the type `T`, it throws
|
|
254
|
+
* Convert every property names of nested objects to follow the snake case
|
|
255
|
+
* convention. If the input value does not follow the type `T`, it throws
|
|
256
|
+
* {@link TypeGuardError}.
|
|
253
257
|
*
|
|
258
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
254
259
|
* @template T Type of the input value
|
|
255
260
|
* @param input Target object
|
|
256
261
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
257
262
|
* @returns Snake case object
|
|
258
|
-
*
|
|
259
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
260
263
|
*/
|
|
261
264
|
export declare function assertSnake<T>(input: unknown, errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): SnakeCase<T>;
|
|
262
265
|
/**
|
|
263
266
|
* Converts to snake case with type checking.
|
|
264
267
|
*
|
|
265
|
-
* Convert every property names of nested objects to follow the snake case
|
|
266
|
-
* If the input value does not follow the type `T`, it returns
|
|
268
|
+
* Convert every property names of nested objects to follow the snake case
|
|
269
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
270
|
+
* `null` value instead.
|
|
267
271
|
*
|
|
272
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
268
273
|
* @template T Type of the input value
|
|
269
274
|
* @param input Target object
|
|
270
275
|
* @returns Snake case object when exact type, otherwise null
|
|
271
|
-
*
|
|
272
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
273
276
|
*/
|
|
274
277
|
export declare function isSnake<T>(input: T): SnakeCase<T> | null;
|
|
275
278
|
/**
|
|
276
279
|
* Converts to snake case with type checking.
|
|
277
280
|
*
|
|
278
|
-
* Convert every property names of nested objects to follow the snake case
|
|
279
|
-
* If the input value does not follow the type `T`, it returns
|
|
281
|
+
* Convert every property names of nested objects to follow the snake case
|
|
282
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
283
|
+
* `null` value instead.
|
|
280
284
|
*
|
|
285
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
281
286
|
* @template T Type of the input value
|
|
282
287
|
* @param input Target object
|
|
283
288
|
* @returns Snake case object when exact type, otherwise null
|
|
284
|
-
*
|
|
285
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
286
289
|
*/
|
|
287
290
|
export declare function isSnake<T>(input: unknown): SnakeCase<T> | null;
|
|
288
291
|
/**
|
|
289
292
|
* Converts to snake case with type validation.
|
|
290
293
|
*
|
|
291
|
-
* Convert every property names of nested objects to follow the snake 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
|
|
294
|
+
* Convert every property names of nested objects to follow the snake case
|
|
295
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
296
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
297
|
+
* value, snake cased converted data would be stored in the `data` property of
|
|
298
|
+
* the output {@link IValidation.Success} object.
|
|
295
299
|
*
|
|
300
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
296
301
|
* @template T Type of the input value
|
|
297
302
|
* @param input Target object
|
|
298
303
|
* @returns Validation result with snake case object
|
|
299
|
-
*
|
|
300
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
301
304
|
*/
|
|
302
305
|
export declare function validateSnake<T>(input: T): IValidation<SnakeCase<T>>;
|
|
303
306
|
/**
|
|
304
307
|
* Converts to snake case with type validation.
|
|
305
308
|
*
|
|
306
|
-
* Convert every property names of nested objects to follow the snake case
|
|
307
|
-
* If the input value does not follow the type `T`, it returns
|
|
308
|
-
* object. Otherwise, there's no problem on the input
|
|
309
|
-
* would be stored in the `data` property of
|
|
309
|
+
* Convert every property names of nested objects to follow the snake case
|
|
310
|
+
* convention. If the input value does not follow the type `T`, it returns
|
|
311
|
+
* {@link IValidation.Failure} object. Otherwise, there's no problem on the input
|
|
312
|
+
* value, snake cased converted data would be stored in the `data` property of
|
|
313
|
+
* the output {@link IValidation.Success} object.
|
|
310
314
|
*
|
|
315
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
311
316
|
* @template T Type of the input value
|
|
312
317
|
* @param input Target object
|
|
313
318
|
* @returns Validation result with snake case object
|
|
314
|
-
*
|
|
315
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
316
319
|
*/
|
|
317
320
|
export declare function validateSnake<T>(input: unknown): IValidation<SnakeCase<T>>;
|
|
318
321
|
/**
|
|
319
322
|
* Creates a reusable {@link camel} function.
|
|
320
323
|
*
|
|
321
|
-
* @danger You must configure the generic argument `T`
|
|
322
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
323
|
-
* @throws compile error
|
|
324
|
-
*
|
|
325
324
|
* @author Jeongho Nam - https://github.com/samchon
|
|
325
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
326
|
+
* @throws Compile error
|
|
327
|
+
* @danger You must configure the generic argument `T`
|
|
326
328
|
*/
|
|
327
329
|
export declare function createCamel(): never;
|
|
328
330
|
/**
|
|
329
331
|
* Creates a reusable {@link camel} function.
|
|
330
332
|
*
|
|
333
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
331
334
|
* @template T Type of the input value
|
|
332
335
|
* @returns A reusable `camel` function
|
|
333
|
-
*
|
|
334
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
335
336
|
*/
|
|
336
337
|
export declare function createCamel<T>(): (input: T) => CamelCase<T>;
|
|
337
338
|
/**
|
|
338
339
|
* Creates a reusable {@link assertCamel} function.
|
|
339
340
|
*
|
|
340
|
-
* @
|
|
341
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
341
342
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
342
343
|
* @returns Nothing until be configure the generic argument `T`
|
|
343
|
-
* @throws
|
|
344
|
-
*
|
|
345
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
344
|
+
* @throws Compile error
|
|
345
|
+
* @danger You must configure the generic argument `T`
|
|
346
346
|
*/
|
|
347
347
|
export declare function createAssertCamel(errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): never;
|
|
348
348
|
/**
|
|
349
349
|
* Creates a reusable {@link assertCamel} function.
|
|
350
350
|
*
|
|
351
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
351
352
|
* @template T Type of the input value
|
|
352
353
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
353
354
|
* @returns A reusable `assertCamel` function
|
|
354
|
-
*
|
|
355
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
356
355
|
*/
|
|
357
356
|
export declare function createAssertCamel<T>(errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): (input: T) => CamelCase<T>;
|
|
358
357
|
/**
|
|
359
358
|
* Creates a reusable {@link isCamel} function.
|
|
360
359
|
*
|
|
361
|
-
* @danger You must configure the generic argument `T`
|
|
362
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
363
|
-
* @throws compile error
|
|
364
|
-
*
|
|
365
360
|
* @author Jeongho Nam - https://github.com/samchon
|
|
361
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
362
|
+
* @throws Compile error
|
|
363
|
+
* @danger You must configure the generic argument `T`
|
|
366
364
|
*/
|
|
367
365
|
export declare function createIsCamel(): never;
|
|
368
366
|
/**
|
|
369
367
|
* Creates a reusable {@link isCamel} function.
|
|
370
368
|
*
|
|
369
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
371
370
|
* @template T Type of the input value
|
|
372
371
|
* @returns A reusable `isCamel` function
|
|
373
|
-
*
|
|
374
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
375
372
|
*/
|
|
376
373
|
export declare function createIsCamel<T>(): (input: T) => CamelCase<T> | null;
|
|
377
374
|
/**
|
|
378
375
|
* Creates a reusable {@link validateCamel} function.
|
|
379
376
|
*
|
|
380
|
-
* @danger You must configure the generic argument `T`
|
|
381
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
382
|
-
* @throws compile error
|
|
383
|
-
*
|
|
384
377
|
* @author Jeongho Nam - https://github.com/samchon
|
|
378
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
379
|
+
* @throws Compile error
|
|
380
|
+
* @danger You must configure the generic argument `T`
|
|
385
381
|
*/
|
|
386
382
|
export declare function createValidateCamel(): never;
|
|
387
383
|
/**
|
|
388
384
|
* Creates a reusable {@link validateCamel} function.
|
|
389
385
|
*
|
|
386
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
390
387
|
* @template T Type of the input value
|
|
391
388
|
* @returns A reusable `validateCamel` function
|
|
392
|
-
*
|
|
393
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
394
389
|
*/
|
|
395
390
|
export declare function createValidateCamel<T>(): (input: T) => IValidation<CamelCase<T>>;
|
|
396
391
|
/**
|
|
397
392
|
* Creates a reusable {@link pascal} function.
|
|
398
393
|
*
|
|
399
|
-
* @danger You must configure the generic argument `T`
|
|
400
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
401
|
-
* @throws compile error
|
|
402
|
-
*
|
|
403
394
|
* @author Jeongho Nam - https://github.com/samchon
|
|
395
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
396
|
+
* @throws Compile error
|
|
397
|
+
* @danger You must configure the generic argument `T`
|
|
404
398
|
*/
|
|
405
399
|
export declare function createPascal(): never;
|
|
406
400
|
/**
|
|
407
401
|
* Creates a reusable {@link pascal} function.
|
|
408
402
|
*
|
|
403
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
409
404
|
* @template T Type of the input value
|
|
410
405
|
* @returns A reusable `pascal` function
|
|
411
|
-
*
|
|
412
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
413
406
|
*/
|
|
414
407
|
export declare function createPascal<T>(): (input: T) => PascalCase<T>;
|
|
415
408
|
/**
|
|
416
409
|
* Creates a reusable {@link assertPascal} function.
|
|
417
410
|
*
|
|
418
|
-
* @
|
|
411
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
419
412
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
420
413
|
* @returns Nothing until be configure the generic argument `T`
|
|
421
|
-
* @throws
|
|
422
|
-
*
|
|
423
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
414
|
+
* @throws Compile error
|
|
415
|
+
* @danger You must configure the generic argument `T`
|
|
424
416
|
*/
|
|
425
417
|
export declare function createAssertPascal(errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): never;
|
|
426
418
|
/**
|
|
427
419
|
* Creates a reusable {@link assertPascal} function.
|
|
428
420
|
*
|
|
421
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
429
422
|
* @template T Type of the input value
|
|
430
423
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
431
424
|
* @returns A reusable `assertPascal` function
|
|
432
|
-
*
|
|
433
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
434
425
|
*/
|
|
435
426
|
export declare function createAssertPascal<T>(errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): (input: T) => PascalCase<T>;
|
|
436
427
|
/**
|
|
437
428
|
* Creates a reusable {@link isPascal} function.
|
|
438
429
|
*
|
|
439
|
-
* @danger You must configure the generic argument `T`
|
|
440
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
441
|
-
* @throws compile error
|
|
442
|
-
*
|
|
443
430
|
* @author Jeongho Nam - https://github.com/samchon
|
|
431
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
432
|
+
* @throws Compile error
|
|
433
|
+
* @danger You must configure the generic argument `T`
|
|
444
434
|
*/
|
|
445
435
|
export declare function createIsPascal(): never;
|
|
446
436
|
/**
|
|
447
437
|
* Creates a reusable {@link isPascal} function.
|
|
448
438
|
*
|
|
439
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
449
440
|
* @template T Type of the input value
|
|
450
441
|
* @returns A reusable `isPascal` function
|
|
451
|
-
*
|
|
452
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
453
442
|
*/
|
|
454
443
|
export declare function createIsPascal<T>(): (input: T) => PascalCase<T> | null;
|
|
455
444
|
/**
|
|
456
445
|
* Creates a reusable {@link validatePascal} function.
|
|
457
446
|
*
|
|
458
|
-
* @danger You must configure the generic argument `T`
|
|
459
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
460
|
-
* @throws compile error
|
|
461
|
-
*
|
|
462
447
|
* @author Jeongho Nam - https://github.com/samchon
|
|
448
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
449
|
+
* @throws Compile error
|
|
450
|
+
* @danger You must configure the generic argument `T`
|
|
463
451
|
*/
|
|
464
452
|
export declare function createValidatePascal(): never;
|
|
465
453
|
/**
|
|
466
454
|
* Creates a reusable {@link validatePascal} function.
|
|
467
455
|
*
|
|
456
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
468
457
|
* @template T Type of the input value
|
|
469
458
|
* @returns A reusable `validatePascal` function
|
|
470
|
-
*
|
|
471
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
472
459
|
*/
|
|
473
460
|
export declare function createValidatePascal<T>(): (input: T) => IValidation<PascalCase<T>>;
|
|
474
461
|
/**
|
|
475
462
|
* Creates a reusable {@link snake} function.
|
|
476
463
|
*
|
|
477
|
-
* @danger You must configure the generic argument `T`
|
|
478
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
479
|
-
* @throws compile error
|
|
480
|
-
*
|
|
481
464
|
* @author Jeongho Nam - https://github.com/samchon
|
|
465
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
466
|
+
* @throws Compile error
|
|
467
|
+
* @danger You must configure the generic argument `T`
|
|
482
468
|
*/
|
|
483
469
|
export declare function createSnake(): never;
|
|
484
470
|
/**
|
|
485
471
|
* Creates a reusable {@link snake} function.
|
|
486
472
|
*
|
|
473
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
487
474
|
* @template T Type of the input value
|
|
488
475
|
* @returns A reusable `snake` function
|
|
489
|
-
*
|
|
490
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
491
476
|
*/
|
|
492
477
|
export declare function createSnake<T>(): (input: T) => SnakeCase<T>;
|
|
493
478
|
/**
|
|
494
479
|
* Creates a reusable {@link assertSnake} function.
|
|
495
480
|
*
|
|
496
|
-
* @
|
|
481
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
497
482
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
498
483
|
* @returns Nothing until be configure the generic argument `T`
|
|
499
|
-
* @throws
|
|
500
|
-
*
|
|
501
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
484
|
+
* @throws Compile error
|
|
485
|
+
* @danger You must configure the generic argument `T`
|
|
502
486
|
*/
|
|
503
487
|
export declare function createAssertSnake(errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): never;
|
|
504
488
|
/**
|
|
505
489
|
* Creates a reusable {@link assertSnake} function.
|
|
506
490
|
*
|
|
491
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
507
492
|
* @template T Type of the input value
|
|
508
493
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
509
494
|
* @returns A reusable `assertSnake` function
|
|
510
|
-
*
|
|
511
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
512
495
|
*/
|
|
513
496
|
export declare function createAssertSnake<T>(errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error)): (input: T) => SnakeCase<T>;
|
|
514
497
|
/**
|
|
515
498
|
* Creates a reusable {@link isSnake} function.
|
|
516
499
|
*
|
|
517
|
-
* @danger You must configure the generic argument `T`
|
|
518
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
519
|
-
* @throws compile error
|
|
520
|
-
*
|
|
521
500
|
* @author Jeongho Nam - https://github.com/samchon
|
|
501
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
502
|
+
* @throws Compile error
|
|
503
|
+
* @danger You must configure the generic argument `T`
|
|
522
504
|
*/
|
|
523
505
|
export declare function createIsSnake(): never;
|
|
524
506
|
/**
|
|
525
507
|
* Creates a reusable {@link isSnake} function.
|
|
526
508
|
*
|
|
509
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
527
510
|
* @template T Type of the input value
|
|
528
511
|
* @returns A reusable `isSnake` function
|
|
529
|
-
*
|
|
530
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
531
512
|
*/
|
|
532
513
|
export declare function createIsSnake<T>(): (input: T) => SnakeCase<T> | null;
|
|
533
514
|
/**
|
|
534
515
|
* Creates a reusable {@link validateSnake} function.
|
|
535
516
|
*
|
|
536
|
-
* @danger You must configure the generic argument `T`
|
|
537
|
-
* @returns Nothing until be configure the generic argument `T`
|
|
538
|
-
* @throws compile error
|
|
539
|
-
*
|
|
540
517
|
* @author Jeongho Nam - https://github.com/samchon
|
|
518
|
+
* @returns Nothing until be configure the generic argument `T`
|
|
519
|
+
* @throws Compile error
|
|
520
|
+
* @danger You must configure the generic argument `T`
|
|
541
521
|
*/
|
|
542
522
|
export declare function createValidateSnake(): never;
|
|
543
523
|
/**
|
|
544
524
|
* Creates a reusable {@link validateSnake} function.
|
|
545
525
|
*
|
|
526
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
546
527
|
* @template T Type of the input value
|
|
547
528
|
* @returns A reusable `validateSnake` function
|
|
548
|
-
*
|
|
549
|
-
* @author Jeongho Nam - https://github.com/samchon
|
|
550
529
|
*/
|
|
551
530
|
export declare function createValidateSnake<T>(): (input: T) => IValidation<SnakeCase<T>>;
|