typia 8.0.3 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AssertionGuard.d.mts +1 -0
- package/lib/CamelCase.d.mts +26 -0
- package/lib/IRandomGenerator.d.mts +40 -0
- package/lib/IReadableURLSearchParams.d.mts +9 -0
- package/lib/IValidation.d.mts +1 -0
- package/lib/PascalCase.d.mts +25 -0
- package/lib/Primitive.d.mts +49 -0
- package/lib/Resolved.d.mts +39 -0
- package/lib/SnakeCase.d.mts +31 -0
- package/lib/TypeGuardError.d.mts +17 -0
- package/lib/executable/TypiaGenerateWizard.d.mts +8 -0
- package/lib/executable/TypiaPatchWizard.d.mts +4 -0
- package/lib/executable/TypiaSetupWizard.d.mts +7 -0
- package/lib/executable/setup/ArgumentParser.d.mts +7 -0
- package/lib/executable/setup/CommandExecutor.d.mts +3 -0
- package/lib/executable/setup/FileRetriever.d.mts +7 -0
- package/lib/executable/setup/PackageManager.d.mts +24 -0
- package/lib/executable/setup/PluginConfigurator.d.mts +4 -0
- package/lib/executable/typia.d.mts +4 -0
- package/lib/factories/CommentFactory.d.mts +5 -0
- package/lib/factories/ExpressionFactory.d.mts +29 -0
- package/lib/factories/IdentifierFactory.d.mts +8 -0
- package/lib/factories/JsonMetadataFactory.d.mts +19 -0
- package/lib/factories/LiteralFactory.d.mts +4 -0
- package/lib/factories/MetadataCollection.d.mts +40 -0
- package/lib/factories/MetadataCommentTagFactory.d.mts +1 -0
- package/lib/factories/MetadataFactory.d.mts +48 -0
- package/lib/factories/MetadataTypeTagFactory.d.mts +20 -0
- package/lib/factories/MetadataTypeTagSchemaFactory.d.mts +7 -0
- package/lib/factories/NumericRangeFactory.d.mts +6 -0
- package/lib/factories/ProtobufFactory.d.mts +13 -0
- package/lib/factories/StatementFactory.d.mts +19 -0
- package/lib/factories/TemplateFactory.d.mts +4 -0
- package/lib/factories/TypeFactory.d.mts +16 -0
- package/lib/factories/ValueFactory.d.mts +8 -0
- package/lib/factories/internal/metadata/IMetadataIteratorProps.d.mts +14 -0
- package/lib/factories/internal/metadata/MetadataHelper.d.mts +4 -0
- package/lib/factories/internal/metadata/emend_metadata_atomics.d.mts +2 -0
- package/lib/factories/internal/metadata/emplace_metadata_alias.d.mts +3 -0
- package/lib/factories/internal/metadata/emplace_metadata_array_type.d.mts +8 -0
- package/lib/factories/internal/metadata/emplace_metadata_object.d.mts +3 -0
- package/lib/factories/internal/metadata/emplace_metadata_tuple.d.mts +4 -0
- package/lib/factories/internal/metadata/explore_metadata.d.mts +8 -0
- package/lib/factories/internal/metadata/iterate_metadata.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_alias.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_array.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_atomic.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_coalesce.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_collection.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_comment_tags.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_constant.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_escape.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_function.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_intersection.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_map.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_native.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_object.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_set.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_sort.d.mts +6 -0
- package/lib/factories/internal/metadata/iterate_metadata_template.d.mts +2 -0
- package/lib/factories/internal/metadata/iterate_metadata_tuple.d.mts +3 -0
- package/lib/factories/internal/metadata/iterate_metadata_union.d.mts +2 -0
- package/lib/functional.d.mts +490 -0
- package/lib/http.d.mts +717 -0
- package/lib/index.d.mts +3 -0
- package/lib/internal/_IProtobufWriter.d.mts +15 -0
- package/lib/internal/_ProtobufReader.d.mts +35 -0
- package/lib/internal/_ProtobufSizer.d.mts +36 -0
- package/lib/internal/_ProtobufWriter.d.mts +45 -0
- package/lib/internal/_accessExpressionAsString.d.mts +1 -0
- package/lib/internal/_assertGuard.d.mts +2 -0
- package/lib/internal/_functionalTypeGuardErrorFactory.d.mts +2 -0
- package/lib/internal/_httpFormDataReadArray.d.mts +1 -0
- package/lib/internal/_httpFormDataReadBigint.d.mts +1 -0
- package/lib/internal/_httpFormDataReadBlob.d.mts +1 -0
- package/lib/internal/_httpFormDataReadBoolean.d.mts +1 -0
- package/lib/internal/_httpFormDataReadFile.d.mts +1 -0
- package/lib/internal/_httpFormDataReadNumber.d.mts +1 -0
- package/lib/internal/_httpFormDataReadString.d.mts +1 -0
- package/lib/internal/_httpHeaderReadBigint.d.mts +1 -0
- package/lib/internal/_httpHeaderReadBoolean.d.mts +1 -0
- package/lib/internal/_httpHeaderReadNumber.d.mts +1 -0
- package/lib/internal/_httpParameterReadBigint.d.mts +1 -0
- package/lib/internal/_httpParameterReadBoolean.d.mts +1 -0
- package/lib/internal/_httpParameterReadNumber.d.mts +1 -0
- package/lib/internal/_httpParameterReadString.d.mts +1 -0
- package/lib/internal/_httpQueryParseURLSearchParams.d.mts +2 -0
- package/lib/internal/_httpQueryReadArray.d.mts +1 -0
- package/lib/internal/_httpQueryReadBigint.d.mts +1 -0
- package/lib/internal/_httpQueryReadBoolean.d.mts +1 -0
- package/lib/internal/_httpQueryReadNumber.d.mts +1 -0
- package/lib/internal/_httpQueryReadString.d.mts +1 -0
- package/lib/internal/_isBetween.d.mts +1 -0
- package/lib/internal/_isBigintString.d.mts +1 -0
- package/lib/internal/_isFormatByte.d.mts +1 -0
- package/lib/internal/_isFormatDate.d.mts +1 -0
- package/lib/internal/_isFormatDateTime.d.mts +1 -0
- package/lib/internal/_isFormatDuration.d.mts +1 -0
- package/lib/internal/_isFormatEmail.d.mts +1 -0
- package/lib/internal/_isFormatHostname.d.mts +1 -0
- package/lib/internal/_isFormatIdnEmail.d.mts +1 -0
- package/lib/internal/_isFormatIdnHostname.d.mts +1 -0
- package/lib/internal/_isFormatIpv4.d.mts +1 -0
- package/lib/internal/_isFormatIpv6.d.mts +1 -0
- package/lib/internal/_isFormatIri.d.mts +1 -0
- package/lib/internal/_isFormatIriReference.d.mts +1 -0
- package/lib/internal/_isFormatJsonPointer.d.mts +1 -0
- package/lib/internal/_isFormatPassword.d.mts +1 -0
- package/lib/internal/_isFormatRegex.d.mts +1 -0
- package/lib/internal/_isFormatRelativeJsonPointer.d.mts +1 -0
- package/lib/internal/_isFormatTime.d.mts +1 -0
- package/lib/internal/_isFormatUri.d.mts +1 -0
- package/lib/internal/_isFormatUriReference.d.mts +1 -0
- package/lib/internal/_isFormatUriTemplate.d.mts +1 -0
- package/lib/internal/_isFormatUrl.d.mts +1 -0
- package/lib/internal/_isFormatUuid.d.mts +1 -0
- package/lib/internal/_isTypeFloat.d.mts +1 -0
- package/lib/internal/_isTypeInt32.d.mts +1 -0
- package/lib/internal/_isTypeInt64.d.mts +1 -0
- package/lib/internal/_isTypeUint32.d.mts +1 -0
- package/lib/internal/_isTypeUint64.d.mts +1 -0
- package/lib/internal/_isUniqueItems.d.mts +1 -0
- package/lib/internal/_jsonStringifyNumber.d.mts +1 -0
- package/lib/internal/_jsonStringifyRest.d.mts +1 -0
- package/lib/internal/_jsonStringifyString.d.mts +13 -0
- package/lib/internal/_jsonStringifyTail.d.mts +1 -0
- package/lib/internal/_llmApplicationFinalize.d.mts +2 -0
- package/lib/internal/_miscCloneAny.d.mts +2 -0
- package/lib/internal/_notationAny.d.mts +1 -0
- package/lib/internal/_notationCamel.d.mts +1 -0
- package/lib/internal/_notationPascal.d.mts +1 -0
- package/lib/internal/_notationSnake.d.mts +1 -0
- package/lib/internal/_randomArray.d.mts +4 -0
- package/lib/internal/_randomBigint.d.mts +2 -0
- package/lib/internal/_randomBoolean.d.mts +1 -0
- package/lib/internal/_randomFormatByte.d.mts +1 -0
- package/lib/internal/_randomFormatDate.d.mts +4 -0
- package/lib/internal/_randomFormatDatetime.d.mts +4 -0
- package/lib/internal/_randomFormatDuration.d.mts +1 -0
- package/lib/internal/_randomFormatEmail.d.mts +1 -0
- package/lib/internal/_randomFormatHostname.d.mts +1 -0
- package/lib/internal/_randomFormatIdnEmail.d.mts +1 -0
- package/lib/internal/_randomFormatIdnHostname.d.mts +1 -0
- package/lib/internal/_randomFormatIpv4.d.mts +1 -0
- package/lib/internal/_randomFormatIpv6.d.mts +1 -0
- package/lib/internal/_randomFormatIri.d.mts +1 -0
- package/lib/internal/_randomFormatIriReference.d.mts +1 -0
- package/lib/internal/_randomFormatJsonPointer.d.mts +1 -0
- package/lib/internal/_randomFormatPassword.d.mts +1 -0
- package/lib/internal/_randomFormatRegex.d.mts +1 -0
- package/lib/internal/_randomFormatRelativeJsonPointer.d.mts +1 -0
- package/lib/internal/_randomFormatTime.d.mts +1 -0
- package/lib/internal/_randomFormatUri.d.mts +1 -0
- package/lib/internal/_randomFormatUriReference.d.mts +1 -0
- package/lib/internal/_randomFormatUriTemplate.d.mts +1 -0
- package/lib/internal/_randomFormatUrl.d.mts +1 -0
- package/lib/internal/_randomFormatUuid.d.mts +1 -0
- package/lib/internal/_randomInteger.d.mts +2 -0
- package/lib/internal/_randomNumber.d.mts +2 -0
- package/lib/internal/_randomPattern.d.mts +1 -0
- package/lib/internal/_randomPick.d.mts +1 -0
- package/lib/internal/_randomString.d.mts +2 -0
- package/lib/internal/_throwTypeGuardError.d.mts +2 -0
- package/lib/internal/_validateReport.d.mts +2 -0
- package/lib/internal/private/__notationCapitalize.d.mts +1 -0
- package/lib/internal/private/__notationUnsnake.d.mts +4 -0
- package/lib/json.d.mts +480 -0
- package/lib/llm.d.mts +322 -0
- package/lib/misc.d.mts +453 -0
- package/lib/module.d.mts +707 -0
- package/lib/notations.d.mts +551 -0
- package/lib/programmers/AssertProgrammer.d.mts +31 -0
- package/lib/programmers/CheckerProgrammer.d.mts +125 -0
- package/lib/programmers/FeatureProgrammer.d.mts +249 -0
- package/lib/programmers/ImportProgrammer.d.mts +35 -0
- package/lib/programmers/IsProgrammer.d.mts +65 -0
- package/lib/programmers/RandomProgrammer.d.mts +22 -0
- package/lib/programmers/TypiaProgrammer.d.mts +8 -0
- package/lib/programmers/ValidateProgrammer.d.mts +22 -0
- package/lib/programmers/functional/FunctionalAssertFunctionProgrammer.d.mts +28 -0
- package/lib/programmers/functional/FunctionalAssertParametersProgrammer.d.mts +28 -0
- package/lib/programmers/functional/FunctionalAssertReturnProgrammer.d.mts +30 -0
- package/lib/programmers/functional/FunctionalIsFunctionProgrammer.d.mts +20 -0
- package/lib/programmers/functional/FunctionalIsParametersProgrammer.d.mts +27 -0
- package/lib/programmers/functional/FunctionalIsReturnProgrammer.d.mts +29 -0
- package/lib/programmers/functional/FunctionalValidateFunctionProgrammer.d.mts +25 -0
- package/lib/programmers/functional/FunctionalValidateParametersProgrammer.d.mts +27 -0
- package/lib/programmers/functional/FunctionalValidateReturnProgrammer.d.mts +29 -0
- package/lib/programmers/functional/internal/FunctionalGeneralProgrammer.d.mts +12 -0
- package/lib/programmers/helpers/AtomicPredicator.d.mts +14 -0
- package/lib/programmers/helpers/CloneJoiner.d.mts +16 -0
- package/lib/programmers/helpers/FunctionProgrammer.d.mts +16 -0
- package/lib/programmers/helpers/HttpMetadataUtil.d.mts +5 -0
- package/lib/programmers/helpers/ICheckEntry.d.mts +12 -0
- package/lib/programmers/helpers/IExpressionEntry.d.mts +8 -0
- package/lib/programmers/helpers/NotationJoiner.d.mts +17 -0
- package/lib/programmers/helpers/OptionPredicator.d.mts +7 -0
- package/lib/programmers/helpers/ProtobufUtil.d.mts +14 -0
- package/lib/programmers/helpers/ProtobufWire.d.mts +29 -0
- package/lib/programmers/helpers/PruneJoiner.d.mts +18 -0
- package/lib/programmers/helpers/RandomJoiner.d.mts +23 -0
- package/lib/programmers/helpers/StringifyJoinder.d.mts +17 -0
- package/lib/programmers/helpers/StringifyPredicator.d.mts +5 -0
- package/lib/programmers/helpers/UnionExplorer.d.mts +79 -0
- package/lib/programmers/helpers/UnionPredicator.d.mts +11 -0
- package/lib/programmers/helpers/disable_function_programmer_declare.d.mts +2 -0
- package/lib/programmers/http/HttpAssertFormDataProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpAssertHeadersProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpAssertQueryProgrammer.d.mts +19 -0
- package/lib/programmers/http/HttpFormDataProgrammer.d.mts +17 -0
- package/lib/programmers/http/HttpHeadersProgrammer.d.mts +18 -0
- package/lib/programmers/http/HttpIsFormDataProgrammer.d.mts +14 -0
- package/lib/programmers/http/HttpIsHeadersProgrammer.d.mts +14 -0
- package/lib/programmers/http/HttpIsQueryProgrammer.d.mts +18 -0
- package/lib/programmers/http/HttpParameterProgrammer.d.mts +7 -0
- package/lib/programmers/http/HttpQueryProgrammer.d.mts +21 -0
- package/lib/programmers/http/HttpValidateFormDataProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpValidateHeadersProgrammer.d.mts +15 -0
- package/lib/programmers/http/HttpValidateQueryProgrammer.d.mts +19 -0
- package/lib/programmers/internal/check_array_length.d.mts +1 -0
- package/lib/programmers/internal/check_bigint.d.mts +1 -0
- package/lib/programmers/internal/check_dynamic_key.d.mts +1 -0
- package/lib/programmers/internal/check_dynamic_properties.d.mts +1 -0
- package/lib/programmers/internal/check_everything.d.mts +1 -0
- package/lib/programmers/internal/check_native.d.mts +1 -0
- package/lib/programmers/internal/check_number.d.mts +1 -0
- package/lib/programmers/internal/check_object.d.mts +1 -0
- package/lib/programmers/internal/check_string.d.mts +1 -0
- package/lib/programmers/internal/check_template.d.mts +1 -0
- package/lib/programmers/internal/check_union_array_like.d.mts +1 -0
- package/lib/programmers/internal/decode_union_object.d.mts +1 -0
- package/lib/programmers/internal/feature_object_entries.d.mts +1 -0
- package/lib/programmers/internal/json_schema_alias.d.mts +7 -0
- package/lib/programmers/internal/json_schema_array.d.mts +6 -0
- package/lib/programmers/internal/json_schema_bigint.d.mts +3 -0
- package/lib/programmers/internal/json_schema_boolean.d.mts +3 -0
- package/lib/programmers/internal/json_schema_constant.d.mts +3 -0
- package/lib/programmers/internal/json_schema_description.d.mts +5 -0
- package/lib/programmers/internal/json_schema_discriminator.d.mts +3 -0
- package/lib/programmers/internal/json_schema_escaped.d.mts +1 -0
- package/lib/programmers/internal/json_schema_native.d.mts +6 -0
- package/lib/programmers/internal/json_schema_number.d.mts +3 -0
- package/lib/programmers/internal/json_schema_object.d.mts +1 -0
- package/lib/programmers/internal/json_schema_plugin.d.mts +6 -0
- package/lib/programmers/internal/json_schema_station.d.mts +8 -0
- package/lib/programmers/internal/json_schema_string.d.mts +3 -0
- package/lib/programmers/internal/json_schema_template.d.mts +3 -0
- package/lib/programmers/internal/json_schema_title.d.mts +5 -0
- package/lib/programmers/internal/json_schema_tuple.d.mts +6 -0
- package/lib/programmers/internal/metadata_to_pattern.d.mts +1 -0
- package/lib/programmers/internal/postfix_of_tuple.d.mts +1 -0
- package/lib/programmers/internal/prune_object_properties.d.mts +1 -0
- package/lib/programmers/internal/stringify_dynamic_properties.d.mts +1 -0
- package/lib/programmers/internal/stringify_native.d.mts +1 -0
- package/lib/programmers/internal/stringify_regular_properties.d.mts +1 -0
- package/lib/programmers/internal/template_to_pattern.d.mts +1 -0
- package/lib/programmers/internal/wrap_metadata_rest_tuple.d.mts +1 -0
- package/lib/programmers/json/JsonApplicationProgrammer.d.mts +24 -0
- package/lib/programmers/json/JsonAssertParseProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonAssertStringifyProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonIsParseProgrammer.d.mts +14 -0
- package/lib/programmers/json/JsonIsStringifyProgrammer.d.mts +14 -0
- package/lib/programmers/json/JsonSchemasProgrammer.d.mts +9 -0
- package/lib/programmers/json/JsonStringifyProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonValidateParseProgrammer.d.mts +15 -0
- package/lib/programmers/json/JsonValidateStringifyProgrammer.d.mts +15 -0
- package/lib/programmers/llm/LlmApplicationProgrammer.d.mts +19 -0
- package/lib/programmers/llm/LlmModelPredicator.d.mts +16 -0
- package/lib/programmers/llm/LlmParametersProgrammer.d.mts +14 -0
- package/lib/programmers/llm/LlmSchemaProgrammer.d.mts +18 -0
- package/lib/programmers/misc/MiscAssertCloneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscAssertPruneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscCloneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscIsCloneProgrammer.d.mts +14 -0
- package/lib/programmers/misc/MiscIsPruneProgrammer.d.mts +14 -0
- package/lib/programmers/misc/MiscLiteralsProgrammer.d.mts +9 -0
- package/lib/programmers/misc/MiscPruneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscValidateCloneProgrammer.d.mts +15 -0
- package/lib/programmers/misc/MiscValidatePruneProgrammer.d.mts +15 -0
- package/lib/programmers/notations/NotationAssertGeneralProgrammer.d.mts +19 -0
- package/lib/programmers/notations/NotationGeneralProgrammer.d.mts +24 -0
- package/lib/programmers/notations/NotationIsGeneralProgrammer.d.mts +18 -0
- package/lib/programmers/notations/NotationValidateGeneralProgrammer.d.mts +19 -0
- package/lib/programmers/protobuf/ProtobufAssertDecodeProgrammer.d.mts +16 -0
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.d.mts +16 -0
- package/lib/programmers/protobuf/ProtobufDecodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufEncodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufIsDecodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufIsEncodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufMessageProgrammer.d.mts +9 -0
- package/lib/programmers/protobuf/ProtobufValidateDecodeProgrammer.d.mts +15 -0
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.d.mts +15 -0
- package/lib/protobuf.d.mts +661 -0
- package/lib/reflect.d.mts +35 -0
- package/lib/schemas/json/IJsonApplication.d.mts +12 -0
- package/lib/schemas/json/IJsonSchemaCollection.d.mts +23 -0
- package/lib/schemas/json/__IJsonApplication.d.mts +35 -0
- package/lib/schemas/llm/ILlmApplicationOfValidate.d.mts +5 -0
- package/lib/schemas/llm/ILlmFunctionOfValidate.d.mts +5 -0
- package/lib/schemas/metadata/IJsDocTagInfo.d.mts +10 -0
- package/lib/schemas/metadata/IMetadata.d.mts +31 -0
- package/lib/schemas/metadata/IMetadataAlias.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataAliasType.d.mts +10 -0
- package/lib/schemas/metadata/IMetadataApplication.d.mts +6 -0
- package/lib/schemas/metadata/IMetadataArray.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataArrayType.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataAtomic.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataComponents.d.mts +10 -0
- package/lib/schemas/metadata/IMetadataConstant.d.mts +9 -0
- package/lib/schemas/metadata/IMetadataConstantValue.d.mts +9 -0
- package/lib/schemas/metadata/IMetadataDictionary.d.mts +10 -0
- package/lib/schemas/metadata/IMetadataEscaped.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataFunction.d.mts +7 -0
- package/lib/schemas/metadata/IMetadataMap.d.mts +7 -0
- package/lib/schemas/metadata/IMetadataNative.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataObject.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataObjectType.d.mts +11 -0
- package/lib/schemas/metadata/IMetadataParameter.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataProperty.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataSet.d.mts +6 -0
- package/lib/schemas/metadata/IMetadataTemplate.d.mts +6 -0
- package/lib/schemas/metadata/IMetadataTuple.d.mts +5 -0
- package/lib/schemas/metadata/IMetadataTupleType.d.mts +8 -0
- package/lib/schemas/metadata/IMetadataTypeTag.d.mts +9 -0
- package/lib/schemas/metadata/Metadata.d.mts +50 -0
- package/lib/schemas/metadata/MetadataAlias.d.mts +13 -0
- package/lib/schemas/metadata/MetadataAliasType.d.mts +16 -0
- package/lib/schemas/metadata/MetadataApplication.d.mts +13 -0
- package/lib/schemas/metadata/MetadataArray.d.mts +16 -0
- package/lib/schemas/metadata/MetadataArrayType.d.mts +14 -0
- package/lib/schemas/metadata/MetadataAtomic.d.mts +12 -0
- package/lib/schemas/metadata/MetadataComponents.d.mts +16 -0
- package/lib/schemas/metadata/MetadataConstant.d.mts +11 -0
- package/lib/schemas/metadata/MetadataConstantValue.d.mts +16 -0
- package/lib/schemas/metadata/MetadataEscaped.d.mts +12 -0
- package/lib/schemas/metadata/MetadataFunction.d.mts +15 -0
- package/lib/schemas/metadata/MetadataMap.d.mts +14 -0
- package/lib/schemas/metadata/MetadataNative.d.mts +12 -0
- package/lib/schemas/metadata/MetadataObject.d.mts +16 -0
- package/lib/schemas/metadata/MetadataObjectType.d.mts +20 -0
- package/lib/schemas/metadata/MetadataParameter.d.mts +15 -0
- package/lib/schemas/metadata/MetadataProperty.d.mts +16 -0
- package/lib/schemas/metadata/MetadataSet.d.mts +13 -0
- package/lib/schemas/metadata/MetadataTemplate.d.mts +15 -0
- package/lib/schemas/metadata/MetadataTuple.d.mts +12 -0
- package/lib/schemas/metadata/MetadataTupleType.d.mts +13 -0
- package/lib/schemas/protobuf/IProtobufProperty.d.mts +5 -0
- package/lib/schemas/protobuf/IProtobufPropertyType.d.mts +28 -0
- package/lib/schemas/protobuf/IProtobufSchema.d.mts +38 -0
- package/lib/tags/Constant.d.mts +10 -0
- package/lib/tags/ContentMediaType.d.mts +9 -0
- package/lib/tags/Default.d.mts +14 -0
- package/lib/tags/Example.d.mts +14 -0
- package/lib/tags/Examples.d.mts +10 -0
- package/lib/tags/ExclusiveMaximum.d.mts +18 -0
- package/lib/tags/ExclusiveMinimum.d.mts +18 -0
- package/lib/tags/Format.d.mts +17 -0
- package/lib/tags/JsonSchemaPlugin.d.mts +7 -0
- package/lib/tags/MaxItems.d.mts +11 -0
- package/lib/tags/MaxLength.d.mts +11 -0
- package/lib/tags/Maximum.d.mts +16 -0
- package/lib/tags/MinItems.d.mts +11 -0
- package/lib/tags/MinLength.d.mts +11 -0
- package/lib/tags/Minimum.d.mts +16 -0
- package/lib/tags/MultipleOf.d.mts +16 -0
- package/lib/tags/Pattern.d.mts +22 -0
- package/lib/tags/Sequence.d.mts +9 -0
- package/lib/tags/TagBase.d.mts +60 -0
- package/lib/tags/Type.d.mts +17 -0
- package/lib/tags/UniqueItems.d.mts +11 -0
- package/lib/tags/index.d.mts +21 -0
- package/lib/tags/internal/FormatCheatSheet.d.mts +27 -0
- package/lib/transform.d.mts +5 -0
- package/lib/transformers/CallExpressionTransformer.d.mts +8 -0
- package/lib/transformers/FileTransformer.d.mts +5 -0
- package/lib/transformers/IProgrammerProps.d.mts +9 -0
- package/lib/transformers/ITransformOptions.d.mts +59 -0
- package/lib/transformers/ITransformProps.d.mts +7 -0
- package/lib/transformers/ITypiaContext.d.mts +15 -0
- package/lib/transformers/ImportTransformer.d.mts +7 -0
- package/lib/transformers/NodeTransformer.d.mts +8 -0
- package/lib/transformers/TransformerError.d.mts +15 -0
- package/lib/transformers/features/AssertTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateAssertTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateIsTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateRandomTransformer.d.mts +5 -0
- package/lib/transformers/features/CreateValidateTransformer.d.mts +5 -0
- package/lib/transformers/features/IsTransformer.d.mts +5 -0
- package/lib/transformers/features/RandomTransformer.d.mts +5 -0
- package/lib/transformers/features/ValidateTransformer.d.mts +5 -0
- package/lib/transformers/features/functional/FunctionalGenericTransformer.d.mts +21 -0
- package/lib/transformers/features/http/CreateHttpAssertFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpAssertHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpAssertQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpIsFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpIsHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpIsQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpParameterTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/CreateHttpValidateQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpAssertFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpAssertHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpAssertQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpIsFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpIsHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpIsQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpParameterTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpValidateFormDataTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpValidateHeadersTransformer.d.mts +4 -0
- package/lib/transformers/features/http/HttpValidateQueryTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonAssertParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonAssertStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateAssertParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateAssertStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateIsParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateIsStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateValidateParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonCreateValidateStringifyProgrammer.d.mts +4 -0
- package/lib/transformers/features/json/JsonIsParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonIsStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonSchemasTransformer.d.mts +5 -0
- package/lib/transformers/features/json/JsonStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonValidateParseTransformer.d.mts +4 -0
- package/lib/transformers/features/json/JsonValidateStringifyTransformer.d.mts +4 -0
- package/lib/transformers/features/llm/LlmApplicationTransformer.d.mts +5 -0
- package/lib/transformers/features/llm/LlmParametersTransformer.d.mts +5 -0
- package/lib/transformers/features/llm/LlmSchemaTransformer.d.mts +5 -0
- package/lib/transformers/features/misc/MiscAssertCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscAssertPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateAssertCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateAssertPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateIsCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateIsPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreatePruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateValidateCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscCreateValidatePruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscIsCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscIsPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscLiteralsTransformer.d.mts +5 -0
- package/lib/transformers/features/misc/MiscPruneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscValidateCloneTransformer.d.mts +4 -0
- package/lib/transformers/features/misc/MiscValidatePruneTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationAssertGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateAssertGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateIsGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationCreateValidateGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationIsGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/notations/NotationValidateGeneralTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufAssertDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufAssertEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateAssertDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateAssertEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateIsDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateIsEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateValidateDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufCreateValidateEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufIsDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufIsEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufMessageTransformer.d.mts +5 -0
- package/lib/transformers/features/protobuf/ProtobufValidateDecodeTransformer.d.mts +4 -0
- package/lib/transformers/features/protobuf/ProtobufValidateEncodeTransformer.d.mts +4 -0
- package/lib/transformers/features/reflect/ReflectMetadataTransformer.d.mts +5 -0
- package/lib/transformers/features/reflect/ReflectNameTransformer.d.mts +5 -0
- package/lib/transformers/internal/GenericTransformer.d.mts +11 -0
- package/lib/typings/Atomic.d.mts +11 -0
- package/lib/typings/ClassProperties.d.mts +4 -0
- package/lib/typings/Customizable.d.mts +5 -0
- package/lib/typings/Equal.d.mts +15 -0
- package/lib/typings/IsTuple.d.mts +5 -0
- package/lib/typings/NativeClass.d.mts +1 -0
- package/lib/typings/OmitNever.d.mts +2 -0
- package/lib/typings/ProtobufAtomic.d.mts +5 -0
- package/lib/typings/SpecialFields.d.mts +3 -0
- package/lib/typings/ValidationPipe.d.mts +7 -0
- package/lib/typings/ValueOf.d.mts +6 -0
- package/lib/typings/Writable.d.mts +5 -0
- package/lib/utils/ArrayUtil.d.mts +7 -0
- package/lib/utils/Escaper.d.mts +4 -0
- package/lib/utils/MapUtil.d.mts +3 -0
- package/lib/utils/NamingConvention.d.mts +5 -0
- package/lib/utils/PatternUtil.d.mts +7 -0
- package/lib/utils/ProtobufNameEncoder.d.mts +4 -0
- package/lib/utils/Singleton.d.mts +6 -0
- package/lib/utils/StringUtil.d.mts +8 -0
- package/package.json +4 -5
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { MetadataCollection } from "../factories/MetadataCollection";
|
|
3
|
+
import { Metadata } from "../schemas/metadata/Metadata";
|
|
4
|
+
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
|
|
5
|
+
import { ITypiaContext } from "../transformers/ITypiaContext";
|
|
6
|
+
import { FeatureProgrammer } from "./FeatureProgrammer";
|
|
7
|
+
import { FunctionProgrammer } from "./helpers/FunctionProgrammer";
|
|
8
|
+
import { ICheckEntry } from "./helpers/ICheckEntry";
|
|
9
|
+
import { IExpressionEntry } from "./helpers/IExpressionEntry";
|
|
10
|
+
export declare namespace CheckerProgrammer {
|
|
11
|
+
interface IConfig {
|
|
12
|
+
prefix: string;
|
|
13
|
+
path: boolean;
|
|
14
|
+
trace: boolean;
|
|
15
|
+
equals: boolean;
|
|
16
|
+
numeric: boolean;
|
|
17
|
+
addition?: () => ts.Statement[];
|
|
18
|
+
decoder?: (props: {
|
|
19
|
+
metadata: Metadata;
|
|
20
|
+
input: ts.Expression;
|
|
21
|
+
explore: IExplore;
|
|
22
|
+
}) => ts.Expression;
|
|
23
|
+
combiner: IConfig.Combiner;
|
|
24
|
+
atomist: (props: {
|
|
25
|
+
entry: ICheckEntry;
|
|
26
|
+
input: ts.Expression;
|
|
27
|
+
explore: IExplore;
|
|
28
|
+
}) => ts.Expression;
|
|
29
|
+
joiner: IConfig.IJoiner;
|
|
30
|
+
success: ts.Expression;
|
|
31
|
+
}
|
|
32
|
+
namespace IConfig {
|
|
33
|
+
interface Combiner {
|
|
34
|
+
(props: {
|
|
35
|
+
explore: IExplore;
|
|
36
|
+
logic: "and" | "or";
|
|
37
|
+
input: ts.Expression;
|
|
38
|
+
binaries: IBinary[];
|
|
39
|
+
expected: string;
|
|
40
|
+
}): ts.Expression;
|
|
41
|
+
}
|
|
42
|
+
interface IJoiner {
|
|
43
|
+
object(props: {
|
|
44
|
+
input: ts.Expression;
|
|
45
|
+
entries: IExpressionEntry<ts.Expression>[];
|
|
46
|
+
}): ts.Expression;
|
|
47
|
+
array(props: {
|
|
48
|
+
input: ts.Expression;
|
|
49
|
+
arrow: ts.ArrowFunction;
|
|
50
|
+
}): ts.Expression;
|
|
51
|
+
tuple?: undefined | ((exprs: ts.Expression[]) => ts.Expression);
|
|
52
|
+
failure(props: {
|
|
53
|
+
input: ts.Expression;
|
|
54
|
+
expected: string;
|
|
55
|
+
explore?: undefined | FeatureProgrammer.IExplore;
|
|
56
|
+
}): ts.Expression;
|
|
57
|
+
is?(expression: ts.Expression): ts.Expression;
|
|
58
|
+
required?(exp: ts.Expression): ts.Expression;
|
|
59
|
+
full?: undefined | ((props: {
|
|
60
|
+
condition: ts.Expression;
|
|
61
|
+
input: ts.Expression;
|
|
62
|
+
expected: string;
|
|
63
|
+
explore: IExplore;
|
|
64
|
+
}) => ts.Expression);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
type IExplore = FeatureProgrammer.IExplore;
|
|
68
|
+
interface IBinary {
|
|
69
|
+
expression: ts.Expression;
|
|
70
|
+
combined: boolean;
|
|
71
|
+
}
|
|
72
|
+
const compose: (props: {
|
|
73
|
+
context: ITypiaContext;
|
|
74
|
+
config: IConfig;
|
|
75
|
+
functor: FunctionProgrammer;
|
|
76
|
+
type: ts.Type;
|
|
77
|
+
name: string | undefined;
|
|
78
|
+
}) => FeatureProgrammer.IComposed;
|
|
79
|
+
const write: (props: {
|
|
80
|
+
context: ITypiaContext;
|
|
81
|
+
config: IConfig;
|
|
82
|
+
functor: FunctionProgrammer;
|
|
83
|
+
type: ts.Type;
|
|
84
|
+
name?: string;
|
|
85
|
+
}) => ts.ArrowFunction;
|
|
86
|
+
const write_object_functions: (props: {
|
|
87
|
+
context: ITypiaContext;
|
|
88
|
+
config: IConfig;
|
|
89
|
+
functor: FunctionProgrammer;
|
|
90
|
+
collection: MetadataCollection;
|
|
91
|
+
}) => ts.VariableStatement[];
|
|
92
|
+
const write_union_functions: (props: {
|
|
93
|
+
context: ITypiaContext;
|
|
94
|
+
config: IConfig;
|
|
95
|
+
functor: FunctionProgrammer;
|
|
96
|
+
collection: MetadataCollection;
|
|
97
|
+
}) => ts.VariableStatement[];
|
|
98
|
+
const write_array_functions: (props: {
|
|
99
|
+
context: ITypiaContext;
|
|
100
|
+
config: IConfig;
|
|
101
|
+
functor: FunctionProgrammer;
|
|
102
|
+
collection: MetadataCollection;
|
|
103
|
+
}) => ts.VariableStatement[];
|
|
104
|
+
const write_tuple_functions: (props: {
|
|
105
|
+
context: ITypiaContext;
|
|
106
|
+
config: IConfig;
|
|
107
|
+
functor: FunctionProgrammer;
|
|
108
|
+
collection: MetadataCollection;
|
|
109
|
+
}) => ts.VariableStatement[];
|
|
110
|
+
const decode: (props: {
|
|
111
|
+
context: ITypiaContext;
|
|
112
|
+
config: IConfig;
|
|
113
|
+
functor: FunctionProgrammer;
|
|
114
|
+
input: ts.Expression;
|
|
115
|
+
metadata: Metadata;
|
|
116
|
+
explore: IExplore;
|
|
117
|
+
}) => ts.Expression;
|
|
118
|
+
const decode_object: (props: {
|
|
119
|
+
config: IConfig;
|
|
120
|
+
functor: FunctionProgrammer;
|
|
121
|
+
object: MetadataObjectType;
|
|
122
|
+
input: ts.Expression;
|
|
123
|
+
explore: IExplore;
|
|
124
|
+
}) => ts.CallExpression;
|
|
125
|
+
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { MetadataCollection } from "../factories/MetadataCollection";
|
|
3
|
+
import { Metadata } from "../schemas/metadata/Metadata";
|
|
4
|
+
import { MetadataArray } from "../schemas/metadata/MetadataArray";
|
|
5
|
+
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
|
|
6
|
+
import { ITypiaContext } from "../transformers/ITypiaContext";
|
|
7
|
+
import { CheckerProgrammer } from "./CheckerProgrammer";
|
|
8
|
+
import { FunctionProgrammer } from "./helpers/FunctionProgrammer";
|
|
9
|
+
import { IExpressionEntry } from "./helpers/IExpressionEntry";
|
|
10
|
+
export declare namespace FeatureProgrammer {
|
|
11
|
+
interface IConfig<Output extends ts.ConciseBody = ts.ConciseBody> {
|
|
12
|
+
types: IConfig.ITypes;
|
|
13
|
+
/**
|
|
14
|
+
* Prefix name of internal functions for specific types.
|
|
15
|
+
*/
|
|
16
|
+
prefix: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to archive access path or not.
|
|
19
|
+
*/
|
|
20
|
+
path: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to trace exception or not.
|
|
23
|
+
*/
|
|
24
|
+
trace: boolean;
|
|
25
|
+
addition?: undefined | ((collection: MetadataCollection) => ts.Statement[]);
|
|
26
|
+
/**
|
|
27
|
+
* Initializer of metadata.
|
|
28
|
+
*/
|
|
29
|
+
initializer: (props: {
|
|
30
|
+
context: ITypiaContext;
|
|
31
|
+
functor: FunctionProgrammer;
|
|
32
|
+
type: ts.Type;
|
|
33
|
+
}) => {
|
|
34
|
+
collection: MetadataCollection;
|
|
35
|
+
metadata: Metadata;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Decoder, station of every types.
|
|
39
|
+
*/
|
|
40
|
+
decoder: (props: {
|
|
41
|
+
metadata: Metadata;
|
|
42
|
+
input: ts.Expression;
|
|
43
|
+
explore: IExplore;
|
|
44
|
+
}) => Output;
|
|
45
|
+
/**
|
|
46
|
+
* Object configurator.
|
|
47
|
+
*/
|
|
48
|
+
objector: IConfig.IObjector<Output>;
|
|
49
|
+
/**
|
|
50
|
+
* Generator of functions for object types.
|
|
51
|
+
*/
|
|
52
|
+
generator: IConfig.IGenerator;
|
|
53
|
+
}
|
|
54
|
+
namespace IConfig {
|
|
55
|
+
interface ITypes {
|
|
56
|
+
input: (type: ts.Type, name?: undefined | string) => ts.TypeNode;
|
|
57
|
+
output: (type: ts.Type, name?: undefined | string) => ts.TypeNode;
|
|
58
|
+
}
|
|
59
|
+
interface IObjector<Output extends ts.ConciseBody = ts.ConciseBody> {
|
|
60
|
+
/**
|
|
61
|
+
* Type checker when union object type comes.
|
|
62
|
+
*/
|
|
63
|
+
checker: (props: {
|
|
64
|
+
metadata: Metadata;
|
|
65
|
+
input: ts.Expression;
|
|
66
|
+
explore: IExplore;
|
|
67
|
+
}) => ts.Expression;
|
|
68
|
+
/**
|
|
69
|
+
* Decoder, function call expression generator of specific typed objects.
|
|
70
|
+
*/
|
|
71
|
+
decoder: (props: {
|
|
72
|
+
input: ts.Expression;
|
|
73
|
+
object: MetadataObjectType;
|
|
74
|
+
explore: IExplore;
|
|
75
|
+
}) => ts.Expression;
|
|
76
|
+
/**
|
|
77
|
+
* Joiner of expressions from properties.
|
|
78
|
+
*/
|
|
79
|
+
joiner(props: {
|
|
80
|
+
entries: IExpressionEntry<Output>[];
|
|
81
|
+
input?: ts.Expression;
|
|
82
|
+
object?: MetadataObjectType;
|
|
83
|
+
}): ts.ConciseBody;
|
|
84
|
+
/**
|
|
85
|
+
* Union type specificator.
|
|
86
|
+
*
|
|
87
|
+
* Expression of an algorithm specifying object type and calling
|
|
88
|
+
* the `decoder` function of the specified object type.
|
|
89
|
+
*/
|
|
90
|
+
unionizer: (props: {
|
|
91
|
+
objects: MetadataObjectType[];
|
|
92
|
+
input: ts.Expression;
|
|
93
|
+
explore: IExplore;
|
|
94
|
+
}) => ts.Expression;
|
|
95
|
+
/**
|
|
96
|
+
* Handler of union type specification failure.
|
|
97
|
+
*
|
|
98
|
+
* @param props Properties of failure
|
|
99
|
+
* @returns Statement of failure
|
|
100
|
+
*/
|
|
101
|
+
failure(props: {
|
|
102
|
+
input: ts.Expression;
|
|
103
|
+
expected: string;
|
|
104
|
+
explore?: undefined | IExplore;
|
|
105
|
+
}): ts.Statement;
|
|
106
|
+
/**
|
|
107
|
+
* Transformer of type checking expression by discrimination.
|
|
108
|
+
*
|
|
109
|
+
* When an object type has been specified by a discrimination without full
|
|
110
|
+
* iteration, the `unionizer` will decode the object instance after
|
|
111
|
+
* the last type checking.
|
|
112
|
+
*
|
|
113
|
+
* In such circumtance, you can transform the last type checking function.
|
|
114
|
+
*
|
|
115
|
+
* @param exp Current expression about type checking
|
|
116
|
+
* @returns Transformed expression
|
|
117
|
+
* @deprecated
|
|
118
|
+
*/
|
|
119
|
+
is?: undefined | ((exp: ts.Expression) => ts.Expression);
|
|
120
|
+
/**
|
|
121
|
+
* Transformer of non-undefined type checking by discrimination.
|
|
122
|
+
*
|
|
123
|
+
* When specifying an union type of objects, `typia` tries to find
|
|
124
|
+
* discrimination way just by checking only one property type.
|
|
125
|
+
* If succeeded to find the discrimination way, `typia` will check the target
|
|
126
|
+
* property type and in the checking, non-undefined type checking would be
|
|
127
|
+
* done.
|
|
128
|
+
*
|
|
129
|
+
* In such process, you can transform the non-undefined type checking.
|
|
130
|
+
*
|
|
131
|
+
* @param exp
|
|
132
|
+
* @returns Transformed expression
|
|
133
|
+
* @deprecated
|
|
134
|
+
*/
|
|
135
|
+
required?: undefined | ((exp: ts.Expression) => ts.Expression);
|
|
136
|
+
/**
|
|
137
|
+
* Condition wrapper when unable to specify any object type.
|
|
138
|
+
*
|
|
139
|
+
* When failed to specify an object type through discrimination, full
|
|
140
|
+
* iteration type checking would be happened. In such circumstance, you
|
|
141
|
+
* can wrap the condition with additional function.
|
|
142
|
+
*
|
|
143
|
+
* @param props Properties of condition
|
|
144
|
+
* @returns The wrapper expression
|
|
145
|
+
*/
|
|
146
|
+
full?: undefined | ((props: {
|
|
147
|
+
condition: ts.Expression;
|
|
148
|
+
input: ts.Expression;
|
|
149
|
+
expected: string;
|
|
150
|
+
explore: IExplore;
|
|
151
|
+
}) => ts.Expression);
|
|
152
|
+
/**
|
|
153
|
+
* Return type.
|
|
154
|
+
*/
|
|
155
|
+
type?: undefined | ts.TypeNode;
|
|
156
|
+
}
|
|
157
|
+
interface IGenerator {
|
|
158
|
+
objects?: undefined | ((collection: MetadataCollection) => ts.VariableStatement[]);
|
|
159
|
+
unions?: undefined | ((collection: MetadataCollection) => ts.VariableStatement[]);
|
|
160
|
+
arrays: (collection: MetadataCollection) => ts.VariableStatement[];
|
|
161
|
+
tuples: (collection: MetadataCollection) => ts.VariableStatement[];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
interface IExplore {
|
|
165
|
+
tracable: boolean;
|
|
166
|
+
source: "top" | "function";
|
|
167
|
+
from: "top" | "array" | "object";
|
|
168
|
+
postfix: string;
|
|
169
|
+
start?: undefined | number;
|
|
170
|
+
}
|
|
171
|
+
type Decoder<T, Output extends ts.ConciseBody = ts.ConciseBody> = (props: {
|
|
172
|
+
input: ts.Expression;
|
|
173
|
+
definition: T;
|
|
174
|
+
explore: IExplore;
|
|
175
|
+
}) => Output;
|
|
176
|
+
interface IComposed {
|
|
177
|
+
body: ts.ConciseBody;
|
|
178
|
+
parameters: ts.ParameterDeclaration[];
|
|
179
|
+
functions: Record<string, ts.VariableStatement>;
|
|
180
|
+
statements: ts.Statement[];
|
|
181
|
+
response: ts.TypeNode;
|
|
182
|
+
}
|
|
183
|
+
interface IDecomposed {
|
|
184
|
+
functions: Record<string, ts.VariableStatement>;
|
|
185
|
+
statements: ts.Statement[];
|
|
186
|
+
arrow: ts.ArrowFunction;
|
|
187
|
+
}
|
|
188
|
+
const compose: (props: {
|
|
189
|
+
context: ITypiaContext;
|
|
190
|
+
config: IConfig;
|
|
191
|
+
functor: FunctionProgrammer;
|
|
192
|
+
type: ts.Type;
|
|
193
|
+
name: string | undefined;
|
|
194
|
+
}) => IComposed;
|
|
195
|
+
const writeDecomposed: (props: {
|
|
196
|
+
modulo: ts.LeftHandSideExpression;
|
|
197
|
+
functor: FunctionProgrammer;
|
|
198
|
+
result: IDecomposed;
|
|
199
|
+
}) => ts.CallExpression;
|
|
200
|
+
const write: (props: {
|
|
201
|
+
context: ITypiaContext;
|
|
202
|
+
config: IConfig;
|
|
203
|
+
functor: FunctionProgrammer;
|
|
204
|
+
type: ts.Type;
|
|
205
|
+
name?: string | undefined;
|
|
206
|
+
}) => ts.ArrowFunction;
|
|
207
|
+
const write_object_functions: (props: {
|
|
208
|
+
config: IConfig;
|
|
209
|
+
context: ITypiaContext;
|
|
210
|
+
collection: MetadataCollection;
|
|
211
|
+
}) => ts.VariableStatement[];
|
|
212
|
+
const write_union_functions: (props: {
|
|
213
|
+
config: IConfig;
|
|
214
|
+
collection: MetadataCollection;
|
|
215
|
+
}) => ts.VariableStatement[];
|
|
216
|
+
const decode_array: (props: {
|
|
217
|
+
config: Pick<IConfig, "trace" | "path" | "decoder" | "prefix">;
|
|
218
|
+
functor: FunctionProgrammer;
|
|
219
|
+
combiner: (next: {
|
|
220
|
+
input: ts.Expression;
|
|
221
|
+
arrow: ts.ArrowFunction;
|
|
222
|
+
}) => ts.Expression;
|
|
223
|
+
array: MetadataArray;
|
|
224
|
+
input: ts.Expression;
|
|
225
|
+
explore: IExplore;
|
|
226
|
+
}) => ts.Expression;
|
|
227
|
+
const decode_object: (props: {
|
|
228
|
+
config: Pick<IConfig, "trace" | "path" | "prefix">;
|
|
229
|
+
functor: FunctionProgrammer;
|
|
230
|
+
object: MetadataObjectType;
|
|
231
|
+
input: ts.Expression;
|
|
232
|
+
explore: IExplore;
|
|
233
|
+
}) => ts.CallExpression;
|
|
234
|
+
const index: (props: {
|
|
235
|
+
start: number | null;
|
|
236
|
+
postfix: string;
|
|
237
|
+
rand: string;
|
|
238
|
+
}) => string;
|
|
239
|
+
const argumentsArray: (props: {
|
|
240
|
+
config: Pick<IConfig, "path" | "trace">;
|
|
241
|
+
input: ts.Expression;
|
|
242
|
+
explore: FeatureProgrammer.IExplore;
|
|
243
|
+
}) => ts.Expression[];
|
|
244
|
+
const parameterDeclarations: (props: {
|
|
245
|
+
config: Pick<CheckerProgrammer.IConfig, "path" | "trace">;
|
|
246
|
+
type: ts.TypeNode;
|
|
247
|
+
input: ts.Identifier;
|
|
248
|
+
}) => ts.ParameterDeclaration[];
|
|
249
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
export declare class ImportProgrammer {
|
|
3
|
+
private readonly assets_;
|
|
4
|
+
private readonly options_;
|
|
5
|
+
constructor(options?: Partial<ImportProgrammer.IOptions>);
|
|
6
|
+
default(props: ImportProgrammer.IDefault): ts.Identifier;
|
|
7
|
+
instance(props: ImportProgrammer.IInstance): ts.Identifier;
|
|
8
|
+
namespace(props: ImportProgrammer.INamespace): ts.Identifier;
|
|
9
|
+
type(props: {
|
|
10
|
+
file: string;
|
|
11
|
+
name: string | ts.EntityName;
|
|
12
|
+
arguments?: ts.TypeNode[];
|
|
13
|
+
}): ts.ImportTypeNode;
|
|
14
|
+
private alias;
|
|
15
|
+
toStatements(): ts.ImportDeclaration[];
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ImportProgrammer {
|
|
18
|
+
interface IOptions {
|
|
19
|
+
internalPrefix: string;
|
|
20
|
+
}
|
|
21
|
+
interface IDefault {
|
|
22
|
+
file: string;
|
|
23
|
+
name: string;
|
|
24
|
+
type: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface IInstance {
|
|
27
|
+
file: string;
|
|
28
|
+
name: string;
|
|
29
|
+
alias: string | null;
|
|
30
|
+
}
|
|
31
|
+
interface INamespace {
|
|
32
|
+
file: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { MetadataCollection } from "../factories/MetadataCollection";
|
|
3
|
+
import { Metadata } from "../schemas/metadata/Metadata";
|
|
4
|
+
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
|
|
5
|
+
import { IProgrammerProps } from "../transformers/IProgrammerProps";
|
|
6
|
+
import { ITypiaContext } from "../transformers/ITypiaContext";
|
|
7
|
+
import { CheckerProgrammer } from "./CheckerProgrammer";
|
|
8
|
+
import { FeatureProgrammer } from "./FeatureProgrammer";
|
|
9
|
+
import { FunctionProgrammer } from "./helpers/FunctionProgrammer";
|
|
10
|
+
import { IExpressionEntry } from "./helpers/IExpressionEntry";
|
|
11
|
+
export declare namespace IsProgrammer {
|
|
12
|
+
const configure: (props: {
|
|
13
|
+
options?: Partial<CONFIG.IOptions>;
|
|
14
|
+
context: ITypiaContext;
|
|
15
|
+
functor: FunctionProgrammer;
|
|
16
|
+
}) => CheckerProgrammer.IConfig;
|
|
17
|
+
namespace CONFIG {
|
|
18
|
+
interface IOptions {
|
|
19
|
+
numeric: boolean;
|
|
20
|
+
undefined: boolean;
|
|
21
|
+
object: (props: {
|
|
22
|
+
input: ts.Expression;
|
|
23
|
+
entries: IExpressionEntry<ts.Expression>[];
|
|
24
|
+
}) => ts.Expression;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
interface IConfig {
|
|
28
|
+
equals: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface IProps extends IProgrammerProps {
|
|
31
|
+
config: IConfig;
|
|
32
|
+
}
|
|
33
|
+
const decompose: (props: {
|
|
34
|
+
context: ITypiaContext;
|
|
35
|
+
functor: FunctionProgrammer;
|
|
36
|
+
config: IConfig;
|
|
37
|
+
type: ts.Type;
|
|
38
|
+
name: string | undefined;
|
|
39
|
+
}) => FeatureProgrammer.IDecomposed;
|
|
40
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
41
|
+
const write_function_statements: (props: {
|
|
42
|
+
context: ITypiaContext;
|
|
43
|
+
functor: FunctionProgrammer;
|
|
44
|
+
collection: MetadataCollection;
|
|
45
|
+
}) => ts.VariableStatement[];
|
|
46
|
+
const decode: (props: {
|
|
47
|
+
context: ITypiaContext;
|
|
48
|
+
functor: FunctionProgrammer;
|
|
49
|
+
metadata: Metadata;
|
|
50
|
+
input: ts.Expression;
|
|
51
|
+
explore: CheckerProgrammer.IExplore;
|
|
52
|
+
}) => ts.Expression;
|
|
53
|
+
const decode_object: (props: {
|
|
54
|
+
context: ITypiaContext;
|
|
55
|
+
functor: FunctionProgrammer;
|
|
56
|
+
object: MetadataObjectType;
|
|
57
|
+
input: ts.Expression;
|
|
58
|
+
explore: FeatureProgrammer.IExplore;
|
|
59
|
+
}) => ts.CallExpression;
|
|
60
|
+
const decode_to_json: (props: {
|
|
61
|
+
input: ts.Expression;
|
|
62
|
+
checkNull: boolean;
|
|
63
|
+
}) => ts.Expression;
|
|
64
|
+
const decode_functional: (input: ts.Expression) => ts.BinaryExpression;
|
|
65
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITypiaContext } from "../transformers/ITypiaContext";
|
|
3
|
+
import { FeatureProgrammer } from "./FeatureProgrammer";
|
|
4
|
+
import { FunctionProgrammer } from "./helpers/FunctionProgrammer";
|
|
5
|
+
export declare namespace RandomProgrammer {
|
|
6
|
+
interface IProps {
|
|
7
|
+
context: ITypiaContext;
|
|
8
|
+
modulo: ts.LeftHandSideExpression;
|
|
9
|
+
type: ts.Type;
|
|
10
|
+
name: string | undefined;
|
|
11
|
+
init: ts.Expression | undefined;
|
|
12
|
+
}
|
|
13
|
+
interface IDecomposeProps {
|
|
14
|
+
context: ITypiaContext;
|
|
15
|
+
functor: FunctionProgrammer;
|
|
16
|
+
type: ts.Type;
|
|
17
|
+
name: string | undefined;
|
|
18
|
+
init: ts.Expression | undefined;
|
|
19
|
+
}
|
|
20
|
+
const decompose: (props: IDecomposeProps) => FeatureProgrammer.IDecomposed;
|
|
21
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { IProgrammerProps } from "../transformers/IProgrammerProps";
|
|
3
|
+
import { ITypiaContext } from "../transformers/ITypiaContext";
|
|
4
|
+
import { FeatureProgrammer } from "./FeatureProgrammer";
|
|
5
|
+
import { FunctionProgrammer } from "./helpers/FunctionProgrammer";
|
|
6
|
+
export declare namespace ValidateProgrammer {
|
|
7
|
+
interface IConfig {
|
|
8
|
+
equals: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface IProps extends IProgrammerProps {
|
|
11
|
+
config: IConfig;
|
|
12
|
+
}
|
|
13
|
+
const decompose: (props: {
|
|
14
|
+
context: ITypiaContext;
|
|
15
|
+
modulo: ts.LeftHandSideExpression;
|
|
16
|
+
functor: FunctionProgrammer;
|
|
17
|
+
config: IConfig;
|
|
18
|
+
type: ts.Type;
|
|
19
|
+
name: string | undefined;
|
|
20
|
+
}) => FeatureProgrammer.IDecomposed;
|
|
21
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITypiaContext } from "../../transformers/ITypiaContext";
|
|
3
|
+
export declare namespace FunctionalAssertFunctionProgrammer {
|
|
4
|
+
interface IConfig {
|
|
5
|
+
equals: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IProps {
|
|
8
|
+
context: ITypiaContext;
|
|
9
|
+
modulo: ts.LeftHandSideExpression;
|
|
10
|
+
config: IConfig;
|
|
11
|
+
declaration: ts.FunctionDeclaration;
|
|
12
|
+
expression: ts.Expression;
|
|
13
|
+
init?: ts.Expression | undefined;
|
|
14
|
+
}
|
|
15
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
16
|
+
const errorFactoryWrapper: (props: {
|
|
17
|
+
context: ITypiaContext;
|
|
18
|
+
parameters: readonly ts.ParameterDeclaration[];
|
|
19
|
+
init: ts.Expression | undefined;
|
|
20
|
+
}) => {
|
|
21
|
+
name: string;
|
|
22
|
+
variable: ts.VariableStatement;
|
|
23
|
+
};
|
|
24
|
+
const hookPath: (props: {
|
|
25
|
+
wrapper: string;
|
|
26
|
+
replacer: string;
|
|
27
|
+
}) => ts.ArrowFunction;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITypiaContext } from "../../transformers/ITypiaContext";
|
|
3
|
+
export declare namespace FunctionalAssertParametersProgrammer {
|
|
4
|
+
interface IConfig {
|
|
5
|
+
equals: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IProps {
|
|
8
|
+
context: ITypiaContext;
|
|
9
|
+
modulo: ts.LeftHandSideExpression;
|
|
10
|
+
config: IConfig;
|
|
11
|
+
declaration: ts.FunctionDeclaration;
|
|
12
|
+
expression: ts.Expression;
|
|
13
|
+
init?: ts.Expression | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface IDecomposeProps {
|
|
16
|
+
context: ITypiaContext;
|
|
17
|
+
config: IConfig;
|
|
18
|
+
modulo: ts.LeftHandSideExpression;
|
|
19
|
+
parameters: readonly ts.ParameterDeclaration[];
|
|
20
|
+
wrapper: string;
|
|
21
|
+
}
|
|
22
|
+
interface IDecomposeOutput {
|
|
23
|
+
functions: ts.Statement[];
|
|
24
|
+
expressions: ts.Expression[];
|
|
25
|
+
}
|
|
26
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
27
|
+
const decompose: (props: IDecomposeProps) => IDecomposeOutput;
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITypiaContext } from "../../transformers/ITypiaContext";
|
|
3
|
+
export declare namespace FunctionAssertReturnProgrammer {
|
|
4
|
+
interface IConfig {
|
|
5
|
+
equals: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IProps {
|
|
8
|
+
context: ITypiaContext;
|
|
9
|
+
modulo: ts.LeftHandSideExpression;
|
|
10
|
+
config: IConfig;
|
|
11
|
+
expression: ts.Expression;
|
|
12
|
+
declaration: ts.FunctionDeclaration;
|
|
13
|
+
init?: ts.Expression | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface IDecomposeProps {
|
|
16
|
+
context: ITypiaContext;
|
|
17
|
+
modulo: ts.LeftHandSideExpression;
|
|
18
|
+
config: IConfig;
|
|
19
|
+
expression: ts.Expression;
|
|
20
|
+
declaration: ts.FunctionDeclaration;
|
|
21
|
+
wrapper: string;
|
|
22
|
+
}
|
|
23
|
+
interface IDecomposeOutput {
|
|
24
|
+
async: boolean;
|
|
25
|
+
functions: ts.Statement[];
|
|
26
|
+
value: ts.Expression;
|
|
27
|
+
}
|
|
28
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
29
|
+
const decompose: (props: IDecomposeProps) => IDecomposeOutput;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITypiaContext } from "../../transformers/ITypiaContext";
|
|
3
|
+
export declare namespace FunctionalIsFunctionProgrammer {
|
|
4
|
+
interface IConfig {
|
|
5
|
+
equals: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IProps {
|
|
8
|
+
context: ITypiaContext;
|
|
9
|
+
modulo: ts.LeftHandSideExpression;
|
|
10
|
+
config: IConfig;
|
|
11
|
+
declaration: ts.FunctionDeclaration;
|
|
12
|
+
expression: ts.Expression;
|
|
13
|
+
init?: ts.Expression | undefined;
|
|
14
|
+
}
|
|
15
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
16
|
+
const getReturnTypeNode: (props: {
|
|
17
|
+
declaration: ts.FunctionDeclaration;
|
|
18
|
+
async: boolean;
|
|
19
|
+
}) => ts.TypeNode | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ITypiaContext } from "../../transformers/ITypiaContext";
|
|
3
|
+
export declare namespace FunctionalIsParametersProgrammer {
|
|
4
|
+
interface IConfig {
|
|
5
|
+
equals: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface IProps {
|
|
8
|
+
context: ITypiaContext;
|
|
9
|
+
modulo: ts.LeftHandSideExpression;
|
|
10
|
+
config: IConfig;
|
|
11
|
+
declaration: ts.FunctionDeclaration;
|
|
12
|
+
expression: ts.Expression;
|
|
13
|
+
init?: ts.Expression | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface IDecomposeProps {
|
|
16
|
+
context: ITypiaContext;
|
|
17
|
+
config: IConfig;
|
|
18
|
+
modulo: ts.LeftHandSideExpression;
|
|
19
|
+
declaration: ts.FunctionDeclaration;
|
|
20
|
+
}
|
|
21
|
+
interface IDecomposeOutput {
|
|
22
|
+
functions: ts.Statement[];
|
|
23
|
+
statements: ts.Statement[];
|
|
24
|
+
}
|
|
25
|
+
const write: (props: IProps) => ts.CallExpression;
|
|
26
|
+
const decompose: (props: IDecomposeProps) => IDecomposeOutput;
|
|
27
|
+
}
|