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.js
CHANGED
|
@@ -25,147 +25,99 @@ exports.createAssertSnake = createAssertSnake;
|
|
|
25
25
|
exports.createIsSnake = createIsSnake;
|
|
26
26
|
exports.createValidateSnake = createValidateSnake;
|
|
27
27
|
const NoTransformConfigurationError_1 = require("./transformers/NoTransformConfigurationError");
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
28
|
+
/** @internal */
|
|
31
29
|
function camel() {
|
|
32
30
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.camel");
|
|
33
31
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
32
|
+
/** @internal */
|
|
37
33
|
function assertCamel() {
|
|
38
34
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.assertCamel");
|
|
39
35
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
36
|
+
/** @internal */
|
|
43
37
|
function isCamel() {
|
|
44
38
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.isCamel");
|
|
45
39
|
}
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
40
|
+
/** @internal */
|
|
49
41
|
function validateCamel() {
|
|
50
42
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.validateCamel");
|
|
51
43
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
44
|
+
/** @internal */
|
|
55
45
|
function pascal() {
|
|
56
46
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.pascal");
|
|
57
47
|
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
48
|
+
/** @internal */
|
|
61
49
|
function assertPascal() {
|
|
62
50
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.assertPascal");
|
|
63
51
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
52
|
+
/** @internal */
|
|
67
53
|
function isPascal() {
|
|
68
54
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.isPascal");
|
|
69
55
|
}
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
56
|
+
/** @internal */
|
|
73
57
|
function validatePascal() {
|
|
74
58
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.validatePascal");
|
|
75
59
|
}
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
60
|
+
/** @internal */
|
|
79
61
|
function snake() {
|
|
80
62
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.snake");
|
|
81
63
|
}
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
64
|
+
/** @internal */
|
|
85
65
|
function assertSnake() {
|
|
86
66
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.assertSnake");
|
|
87
67
|
}
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
68
|
+
/** @internal */
|
|
91
69
|
function isSnake() {
|
|
92
70
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.isSnake");
|
|
93
71
|
}
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
72
|
+
/** @internal */
|
|
97
73
|
function validateSnake() {
|
|
98
74
|
return (0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.validateSnake");
|
|
99
75
|
}
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
76
|
+
/** @internal */
|
|
103
77
|
function createCamel() {
|
|
104
78
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createCamel");
|
|
105
79
|
}
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
80
|
+
/** @internal */
|
|
109
81
|
function createAssertCamel() {
|
|
110
82
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createAssertCamel");
|
|
111
83
|
}
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
84
|
+
/** @internal */
|
|
115
85
|
function createIsCamel() {
|
|
116
86
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createIsCamel");
|
|
117
87
|
}
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
88
|
+
/** @internal */
|
|
121
89
|
function createValidateCamel() {
|
|
122
90
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createValidateCamel");
|
|
123
91
|
}
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
*/
|
|
92
|
+
/** @internal */
|
|
127
93
|
function createPascal() {
|
|
128
94
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createPascal");
|
|
129
95
|
}
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
96
|
+
/** @internal */
|
|
133
97
|
function createAssertPascal() {
|
|
134
98
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createAssertPascal");
|
|
135
99
|
}
|
|
136
|
-
/**
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
100
|
+
/** @internal */
|
|
139
101
|
function createIsPascal() {
|
|
140
102
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createIsPascal");
|
|
141
103
|
}
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
104
|
+
/** @internal */
|
|
145
105
|
function createValidatePascal() {
|
|
146
106
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createValidatePascal");
|
|
147
107
|
}
|
|
148
|
-
/**
|
|
149
|
-
* @internal
|
|
150
|
-
*/
|
|
108
|
+
/** @internal */
|
|
151
109
|
function createSnake() {
|
|
152
110
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createSnake");
|
|
153
111
|
}
|
|
154
|
-
/**
|
|
155
|
-
* @internal
|
|
156
|
-
*/
|
|
112
|
+
/** @internal */
|
|
157
113
|
function createAssertSnake() {
|
|
158
114
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createAssertSnake");
|
|
159
115
|
}
|
|
160
|
-
/**
|
|
161
|
-
* @internal
|
|
162
|
-
*/
|
|
116
|
+
/** @internal */
|
|
163
117
|
function createIsSnake() {
|
|
164
118
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createIsSnake");
|
|
165
119
|
}
|
|
166
|
-
/**
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
120
|
+
/** @internal */
|
|
169
121
|
function createValidateSnake() {
|
|
170
122
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("notations.createValidateSnake");
|
|
171
123
|
}
|
package/lib/notations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notations.js","sourceRoot":"","sources":["../src/notations.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"notations.js","sourceRoot":"","sources":["../src/notations.ts"],"names":[],"mappings":"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"}
|
package/lib/notations.mjs
CHANGED
|
@@ -1,146 +1,98 @@
|
|
|
1
1
|
import { NoTransformConfigurationError } from './transformers/NoTransformConfigurationError.mjs';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
/** @internal */
|
|
6
4
|
function camel() {
|
|
7
5
|
return NoTransformConfigurationError("notations.camel");
|
|
8
6
|
}
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
7
|
+
/** @internal */
|
|
12
8
|
function assertCamel() {
|
|
13
9
|
return NoTransformConfigurationError("notations.assertCamel");
|
|
14
10
|
}
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
11
|
+
/** @internal */
|
|
18
12
|
function isCamel() {
|
|
19
13
|
return NoTransformConfigurationError("notations.isCamel");
|
|
20
14
|
}
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
15
|
+
/** @internal */
|
|
24
16
|
function validateCamel() {
|
|
25
17
|
return NoTransformConfigurationError("notations.validateCamel");
|
|
26
18
|
}
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
19
|
+
/** @internal */
|
|
30
20
|
function pascal() {
|
|
31
21
|
return NoTransformConfigurationError("notations.pascal");
|
|
32
22
|
}
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
23
|
+
/** @internal */
|
|
36
24
|
function assertPascal() {
|
|
37
25
|
return NoTransformConfigurationError("notations.assertPascal");
|
|
38
26
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
27
|
+
/** @internal */
|
|
42
28
|
function isPascal() {
|
|
43
29
|
return NoTransformConfigurationError("notations.isPascal");
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
31
|
+
/** @internal */
|
|
48
32
|
function validatePascal() {
|
|
49
33
|
return NoTransformConfigurationError("notations.validatePascal");
|
|
50
34
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
35
|
+
/** @internal */
|
|
54
36
|
function snake() {
|
|
55
37
|
return NoTransformConfigurationError("notations.snake");
|
|
56
38
|
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
39
|
+
/** @internal */
|
|
60
40
|
function assertSnake() {
|
|
61
41
|
return NoTransformConfigurationError("notations.assertSnake");
|
|
62
42
|
}
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
43
|
+
/** @internal */
|
|
66
44
|
function isSnake() {
|
|
67
45
|
return NoTransformConfigurationError("notations.isSnake");
|
|
68
46
|
}
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
47
|
+
/** @internal */
|
|
72
48
|
function validateSnake() {
|
|
73
49
|
return NoTransformConfigurationError("notations.validateSnake");
|
|
74
50
|
}
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
51
|
+
/** @internal */
|
|
78
52
|
function createCamel() {
|
|
79
53
|
NoTransformConfigurationError("notations.createCamel");
|
|
80
54
|
}
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
55
|
+
/** @internal */
|
|
84
56
|
function createAssertCamel() {
|
|
85
57
|
NoTransformConfigurationError("notations.createAssertCamel");
|
|
86
58
|
}
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
59
|
+
/** @internal */
|
|
90
60
|
function createIsCamel() {
|
|
91
61
|
NoTransformConfigurationError("notations.createIsCamel");
|
|
92
62
|
}
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
63
|
+
/** @internal */
|
|
96
64
|
function createValidateCamel() {
|
|
97
65
|
NoTransformConfigurationError("notations.createValidateCamel");
|
|
98
66
|
}
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
67
|
+
/** @internal */
|
|
102
68
|
function createPascal() {
|
|
103
69
|
NoTransformConfigurationError("notations.createPascal");
|
|
104
70
|
}
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
71
|
+
/** @internal */
|
|
108
72
|
function createAssertPascal() {
|
|
109
73
|
NoTransformConfigurationError("notations.createAssertPascal");
|
|
110
74
|
}
|
|
111
|
-
/**
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
75
|
+
/** @internal */
|
|
114
76
|
function createIsPascal() {
|
|
115
77
|
NoTransformConfigurationError("notations.createIsPascal");
|
|
116
78
|
}
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
79
|
+
/** @internal */
|
|
120
80
|
function createValidatePascal() {
|
|
121
81
|
NoTransformConfigurationError("notations.createValidatePascal");
|
|
122
82
|
}
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
*/
|
|
83
|
+
/** @internal */
|
|
126
84
|
function createSnake() {
|
|
127
85
|
NoTransformConfigurationError("notations.createSnake");
|
|
128
86
|
}
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
87
|
+
/** @internal */
|
|
132
88
|
function createAssertSnake() {
|
|
133
89
|
NoTransformConfigurationError("notations.createAssertSnake");
|
|
134
90
|
}
|
|
135
|
-
/**
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
91
|
+
/** @internal */
|
|
138
92
|
function createIsSnake() {
|
|
139
93
|
NoTransformConfigurationError("notations.createIsSnake");
|
|
140
94
|
}
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
95
|
+
/** @internal */
|
|
144
96
|
function createValidateSnake() {
|
|
145
97
|
NoTransformConfigurationError("notations.createValidateSnake");
|
|
146
98
|
}
|
|
@@ -10,22 +10,14 @@ import { IExpressionEntry } from "./helpers/IExpressionEntry";
|
|
|
10
10
|
export declare namespace FeatureProgrammer {
|
|
11
11
|
interface IConfig<Output extends ts.ConciseBody = ts.ConciseBody> {
|
|
12
12
|
types: IConfig.ITypes;
|
|
13
|
-
/**
|
|
14
|
-
* Prefix name of internal functions for specific types.
|
|
15
|
-
*/
|
|
13
|
+
/** Prefix name of internal functions for specific types. */
|
|
16
14
|
prefix: string;
|
|
17
|
-
/**
|
|
18
|
-
* Whether to archive access path or not.
|
|
19
|
-
*/
|
|
15
|
+
/** Whether to archive access path or not. */
|
|
20
16
|
path: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to trace exception or not.
|
|
23
|
-
*/
|
|
17
|
+
/** Whether to trace exception or not. */
|
|
24
18
|
trace: boolean;
|
|
25
19
|
addition?: undefined | ((collection: MetadataCollection) => ts.Statement[]);
|
|
26
|
-
/**
|
|
27
|
-
* Initializer of metadata.
|
|
28
|
-
*/
|
|
20
|
+
/** Initializer of metadata. */
|
|
29
21
|
initializer: (props: {
|
|
30
22
|
context: ITypiaContext;
|
|
31
23
|
functor: FunctionProgrammer;
|
|
@@ -34,21 +26,15 @@ export declare namespace FeatureProgrammer {
|
|
|
34
26
|
collection: MetadataCollection;
|
|
35
27
|
metadata: Metadata;
|
|
36
28
|
};
|
|
37
|
-
/**
|
|
38
|
-
* Decoder, station of every types.
|
|
39
|
-
*/
|
|
29
|
+
/** Decoder, station of every types. */
|
|
40
30
|
decoder: (props: {
|
|
41
31
|
metadata: Metadata;
|
|
42
32
|
input: ts.Expression;
|
|
43
33
|
explore: IExplore;
|
|
44
34
|
}) => Output;
|
|
45
|
-
/**
|
|
46
|
-
* Object configurator.
|
|
47
|
-
*/
|
|
35
|
+
/** Object configurator. */
|
|
48
36
|
objector: IConfig.IObjector<Output>;
|
|
49
|
-
/**
|
|
50
|
-
* Generator of functions for object types.
|
|
51
|
-
*/
|
|
37
|
+
/** Generator of functions for object types. */
|
|
52
38
|
generator: IConfig.IGenerator;
|
|
53
39
|
}
|
|
54
40
|
namespace IConfig {
|
|
@@ -57,25 +43,19 @@ export declare namespace FeatureProgrammer {
|
|
|
57
43
|
output: (type: ts.Type, name?: undefined | string) => ts.TypeNode;
|
|
58
44
|
}
|
|
59
45
|
interface IObjector<Output extends ts.ConciseBody = ts.ConciseBody> {
|
|
60
|
-
/**
|
|
61
|
-
* Type checker when union object type comes.
|
|
62
|
-
*/
|
|
46
|
+
/** Type checker when union object type comes. */
|
|
63
47
|
checker: (props: {
|
|
64
48
|
metadata: Metadata;
|
|
65
49
|
input: ts.Expression;
|
|
66
50
|
explore: IExplore;
|
|
67
51
|
}) => ts.Expression;
|
|
68
|
-
/**
|
|
69
|
-
* Decoder, function call expression generator of specific typed objects.
|
|
70
|
-
*/
|
|
52
|
+
/** Decoder, function call expression generator of specific typed objects. */
|
|
71
53
|
decoder: (props: {
|
|
72
54
|
input: ts.Expression;
|
|
73
55
|
object: MetadataObjectType;
|
|
74
56
|
explore: IExplore;
|
|
75
57
|
}) => ts.Expression;
|
|
76
|
-
/**
|
|
77
|
-
* Joiner of expressions from properties.
|
|
78
|
-
*/
|
|
58
|
+
/** Joiner of expressions from properties. */
|
|
79
59
|
joiner(props: {
|
|
80
60
|
entries: IExpressionEntry<Output>[];
|
|
81
61
|
input?: ts.Expression;
|
|
@@ -84,8 +64,8 @@ export declare namespace FeatureProgrammer {
|
|
|
84
64
|
/**
|
|
85
65
|
* Union type specificator.
|
|
86
66
|
*
|
|
87
|
-
* Expression of an algorithm specifying object type and calling
|
|
88
|
-
*
|
|
67
|
+
* Expression of an algorithm specifying object type and calling the
|
|
68
|
+
* `decoder` function of the specified object type.
|
|
89
69
|
*/
|
|
90
70
|
unionizer: (props: {
|
|
91
71
|
objects: MetadataObjectType[];
|
|
@@ -107,30 +87,30 @@ export declare namespace FeatureProgrammer {
|
|
|
107
87
|
* Transformer of type checking expression by discrimination.
|
|
108
88
|
*
|
|
109
89
|
* When an object type has been specified by a discrimination without full
|
|
110
|
-
* iteration, the `unionizer` will decode the object instance after
|
|
111
|
-
*
|
|
90
|
+
* iteration, the `unionizer` will decode the object instance after the
|
|
91
|
+
* last type checking.
|
|
112
92
|
*
|
|
113
93
|
* In such circumtance, you can transform the last type checking function.
|
|
114
94
|
*
|
|
95
|
+
* @deprecated
|
|
115
96
|
* @param exp Current expression about type checking
|
|
116
97
|
* @returns Transformed expression
|
|
117
|
-
* @deprecated
|
|
118
98
|
*/
|
|
119
99
|
is?: undefined | ((exp: ts.Expression) => ts.Expression);
|
|
120
100
|
/**
|
|
121
101
|
* Transformer of non-undefined type checking by discrimination.
|
|
122
102
|
*
|
|
123
103
|
* When specifying an union type of objects, `typia` tries to find
|
|
124
|
-
* discrimination way just by checking only one property type.
|
|
125
|
-
*
|
|
104
|
+
* discrimination way just by checking only one property type. If
|
|
105
|
+
* succeeded to find the discrimination way, `typia` will check the target
|
|
126
106
|
* property type and in the checking, non-undefined type checking would be
|
|
127
107
|
* done.
|
|
128
108
|
*
|
|
129
109
|
* In such process, you can transform the non-undefined type checking.
|
|
130
110
|
*
|
|
111
|
+
* @deprecated
|
|
131
112
|
* @param exp
|
|
132
113
|
* @returns Transformed expression
|
|
133
|
-
* @deprecated
|
|
134
114
|
*/
|
|
135
115
|
required?: undefined | ((exp: ts.Expression) => ts.Expression);
|
|
136
116
|
/**
|
|
@@ -149,9 +129,7 @@ export declare namespace FeatureProgrammer {
|
|
|
149
129
|
expected: string;
|
|
150
130
|
explore: IExplore;
|
|
151
131
|
}) => ts.Expression);
|
|
152
|
-
/**
|
|
153
|
-
* Return type.
|
|
154
|
-
*/
|
|
132
|
+
/** Return type. */
|
|
155
133
|
type?: undefined | ts.TypeNode;
|
|
156
134
|
}
|
|
157
135
|
interface IGenerator {
|
|
@@ -10,22 +10,14 @@ import { IExpressionEntry } from "./helpers/IExpressionEntry";
|
|
|
10
10
|
export declare namespace FeatureProgrammer {
|
|
11
11
|
interface IConfig<Output extends ts.ConciseBody = ts.ConciseBody> {
|
|
12
12
|
types: IConfig.ITypes;
|
|
13
|
-
/**
|
|
14
|
-
* Prefix name of internal functions for specific types.
|
|
15
|
-
*/
|
|
13
|
+
/** Prefix name of internal functions for specific types. */
|
|
16
14
|
prefix: string;
|
|
17
|
-
/**
|
|
18
|
-
* Whether to archive access path or not.
|
|
19
|
-
*/
|
|
15
|
+
/** Whether to archive access path or not. */
|
|
20
16
|
path: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to trace exception or not.
|
|
23
|
-
*/
|
|
17
|
+
/** Whether to trace exception or not. */
|
|
24
18
|
trace: boolean;
|
|
25
19
|
addition?: undefined | ((collection: MetadataCollection) => ts.Statement[]);
|
|
26
|
-
/**
|
|
27
|
-
* Initializer of metadata.
|
|
28
|
-
*/
|
|
20
|
+
/** Initializer of metadata. */
|
|
29
21
|
initializer: (props: {
|
|
30
22
|
context: ITypiaContext;
|
|
31
23
|
functor: FunctionProgrammer;
|
|
@@ -34,21 +26,15 @@ export declare namespace FeatureProgrammer {
|
|
|
34
26
|
collection: MetadataCollection;
|
|
35
27
|
metadata: Metadata;
|
|
36
28
|
};
|
|
37
|
-
/**
|
|
38
|
-
* Decoder, station of every types.
|
|
39
|
-
*/
|
|
29
|
+
/** Decoder, station of every types. */
|
|
40
30
|
decoder: (props: {
|
|
41
31
|
metadata: Metadata;
|
|
42
32
|
input: ts.Expression;
|
|
43
33
|
explore: IExplore;
|
|
44
34
|
}) => Output;
|
|
45
|
-
/**
|
|
46
|
-
* Object configurator.
|
|
47
|
-
*/
|
|
35
|
+
/** Object configurator. */
|
|
48
36
|
objector: IConfig.IObjector<Output>;
|
|
49
|
-
/**
|
|
50
|
-
* Generator of functions for object types.
|
|
51
|
-
*/
|
|
37
|
+
/** Generator of functions for object types. */
|
|
52
38
|
generator: IConfig.IGenerator;
|
|
53
39
|
}
|
|
54
40
|
namespace IConfig {
|
|
@@ -57,25 +43,19 @@ export declare namespace FeatureProgrammer {
|
|
|
57
43
|
output: (type: ts.Type, name?: undefined | string) => ts.TypeNode;
|
|
58
44
|
}
|
|
59
45
|
interface IObjector<Output extends ts.ConciseBody = ts.ConciseBody> {
|
|
60
|
-
/**
|
|
61
|
-
* Type checker when union object type comes.
|
|
62
|
-
*/
|
|
46
|
+
/** Type checker when union object type comes. */
|
|
63
47
|
checker: (props: {
|
|
64
48
|
metadata: Metadata;
|
|
65
49
|
input: ts.Expression;
|
|
66
50
|
explore: IExplore;
|
|
67
51
|
}) => ts.Expression;
|
|
68
|
-
/**
|
|
69
|
-
* Decoder, function call expression generator of specific typed objects.
|
|
70
|
-
*/
|
|
52
|
+
/** Decoder, function call expression generator of specific typed objects. */
|
|
71
53
|
decoder: (props: {
|
|
72
54
|
input: ts.Expression;
|
|
73
55
|
object: MetadataObjectType;
|
|
74
56
|
explore: IExplore;
|
|
75
57
|
}) => ts.Expression;
|
|
76
|
-
/**
|
|
77
|
-
* Joiner of expressions from properties.
|
|
78
|
-
*/
|
|
58
|
+
/** Joiner of expressions from properties. */
|
|
79
59
|
joiner(props: {
|
|
80
60
|
entries: IExpressionEntry<Output>[];
|
|
81
61
|
input?: ts.Expression;
|
|
@@ -84,8 +64,8 @@ export declare namespace FeatureProgrammer {
|
|
|
84
64
|
/**
|
|
85
65
|
* Union type specificator.
|
|
86
66
|
*
|
|
87
|
-
* Expression of an algorithm specifying object type and calling
|
|
88
|
-
*
|
|
67
|
+
* Expression of an algorithm specifying object type and calling the
|
|
68
|
+
* `decoder` function of the specified object type.
|
|
89
69
|
*/
|
|
90
70
|
unionizer: (props: {
|
|
91
71
|
objects: MetadataObjectType[];
|
|
@@ -107,30 +87,30 @@ export declare namespace FeatureProgrammer {
|
|
|
107
87
|
* Transformer of type checking expression by discrimination.
|
|
108
88
|
*
|
|
109
89
|
* When an object type has been specified by a discrimination without full
|
|
110
|
-
* iteration, the `unionizer` will decode the object instance after
|
|
111
|
-
*
|
|
90
|
+
* iteration, the `unionizer` will decode the object instance after the
|
|
91
|
+
* last type checking.
|
|
112
92
|
*
|
|
113
93
|
* In such circumtance, you can transform the last type checking function.
|
|
114
94
|
*
|
|
95
|
+
* @deprecated
|
|
115
96
|
* @param exp Current expression about type checking
|
|
116
97
|
* @returns Transformed expression
|
|
117
|
-
* @deprecated
|
|
118
98
|
*/
|
|
119
99
|
is?: undefined | ((exp: ts.Expression) => ts.Expression);
|
|
120
100
|
/**
|
|
121
101
|
* Transformer of non-undefined type checking by discrimination.
|
|
122
102
|
*
|
|
123
103
|
* When specifying an union type of objects, `typia` tries to find
|
|
124
|
-
* discrimination way just by checking only one property type.
|
|
125
|
-
*
|
|
104
|
+
* discrimination way just by checking only one property type. If
|
|
105
|
+
* succeeded to find the discrimination way, `typia` will check the target
|
|
126
106
|
* property type and in the checking, non-undefined type checking would be
|
|
127
107
|
* done.
|
|
128
108
|
*
|
|
129
109
|
* In such process, you can transform the non-undefined type checking.
|
|
130
110
|
*
|
|
111
|
+
* @deprecated
|
|
131
112
|
* @param exp
|
|
132
113
|
* @returns Transformed expression
|
|
133
|
-
* @deprecated
|
|
134
114
|
*/
|
|
135
115
|
required?: undefined | ((exp: ts.Expression) => ts.Expression);
|
|
136
116
|
/**
|
|
@@ -149,9 +129,7 @@ export declare namespace FeatureProgrammer {
|
|
|
149
129
|
expected: string;
|
|
150
130
|
explore: IExplore;
|
|
151
131
|
}) => ts.Expression);
|
|
152
|
-
/**
|
|
153
|
-
* Return type.
|
|
154
|
-
*/
|
|
132
|
+
/** Return type. */
|
|
155
133
|
type?: undefined | ts.TypeNode;
|
|
156
134
|
}
|
|
157
135
|
interface IGenerator {
|