typia 12.1.0-dev.20260325 → 13.0.0-dev.20260426
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/LICENSE +21 -21
- package/README.md +153 -153
- package/bin/ttsc-typia-native +0 -0
- package/lib/TypeGuardError.js +5 -6
- package/lib/TypeGuardError.js.map +1 -1
- package/lib/TypeGuardError.mjs +6 -93
- package/lib/TypeGuardError.mjs.map +1 -1
- package/lib/TypeGuardError2.mjs +62 -0
- package/lib/TypeGuardError2.mjs.map +1 -0
- package/lib/_virtual/ArgumentParser.mjs +4 -0
- package/lib/_virtual/ArgumentParser.mjs.map +1 -0
- package/lib/_virtual/CommandExecutor.mjs +4 -0
- package/lib/_virtual/CommandExecutor.mjs.map +1 -0
- package/lib/_virtual/FileRetriever.mjs +4 -0
- package/lib/_virtual/FileRetriever.mjs.map +1 -0
- package/lib/_virtual/NoTransformConfigurationError.mjs +4 -0
- package/lib/_virtual/NoTransformConfigurationError.mjs.map +1 -0
- package/lib/_virtual/PackageManager.mjs +4 -0
- package/lib/_virtual/PackageManager.mjs.map +1 -0
- package/lib/_virtual/PluginConfigurator.mjs +4 -0
- package/lib/_virtual/PluginConfigurator.mjs.map +1 -0
- package/lib/_virtual/TypeGuardError.mjs +4 -0
- package/lib/_virtual/TypeGuardError.mjs.map +1 -0
- package/lib/_virtual/TypiaGenerateWizard.mjs +4 -0
- package/lib/_virtual/TypiaGenerateWizard.mjs.map +1 -0
- package/lib/_virtual/TypiaSetupWizard.mjs +4 -0
- package/lib/_virtual/TypiaSetupWizard.mjs.map +1 -0
- package/lib/_virtual/_IProtobufWriter.mjs +4 -0
- package/lib/_virtual/_IProtobufWriter.mjs.map +1 -0
- package/lib/_virtual/_ProtobufReader.mjs +4 -0
- package/lib/_virtual/_ProtobufReader.mjs.map +1 -0
- package/lib/_virtual/_ProtobufSizer.mjs +4 -0
- package/lib/_virtual/_ProtobufSizer.mjs.map +1 -0
- package/lib/_virtual/_ProtobufWriter.mjs +4 -0
- package/lib/_virtual/_ProtobufWriter.mjs.map +1 -0
- package/lib/_virtual/__notationCapitalize.mjs +4 -0
- package/lib/_virtual/__notationCapitalize.mjs.map +1 -0
- package/lib/_virtual/__notationUnsnake.mjs +4 -0
- package/lib/_virtual/__notationUnsnake.mjs.map +1 -0
- package/lib/_virtual/_accessExpressionAsString.mjs +4 -0
- package/lib/_virtual/_accessExpressionAsString.mjs.map +1 -0
- package/lib/_virtual/_assertGuard.mjs +4 -0
- package/lib/_virtual/_assertGuard.mjs.map +1 -0
- package/lib/_virtual/_coerceLlmArguments.mjs +4 -0
- package/lib/_virtual/_coerceLlmArguments.mjs.map +1 -0
- package/lib/_virtual/_commonjsHelpers.mjs +6 -0
- package/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/lib/_virtual/_createStandardSchema.mjs +4 -0
- package/lib/_virtual/_createStandardSchema.mjs.map +1 -0
- package/lib/_virtual/_functionalTypeGuardErrorFactory.mjs +4 -0
- package/lib/_virtual/_functionalTypeGuardErrorFactory.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadArray.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadArray.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadBigint.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadBigint.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadBlob.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadBlob.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadBoolean.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadBoolean.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadFile.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadFile.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadNumber.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadNumber.mjs.map +1 -0
- package/lib/_virtual/_httpFormDataReadString.mjs +4 -0
- package/lib/_virtual/_httpFormDataReadString.mjs.map +1 -0
- package/lib/_virtual/_httpHeaderReadBigint.mjs +4 -0
- package/lib/_virtual/_httpHeaderReadBigint.mjs.map +1 -0
- package/lib/_virtual/_httpHeaderReadBoolean.mjs +4 -0
- package/lib/_virtual/_httpHeaderReadBoolean.mjs.map +1 -0
- package/lib/_virtual/_httpHeaderReadNumber.mjs +4 -0
- package/lib/_virtual/_httpHeaderReadNumber.mjs.map +1 -0
- package/lib/_virtual/_httpParameterReadBigint.mjs +4 -0
- package/lib/_virtual/_httpParameterReadBigint.mjs.map +1 -0
- package/lib/_virtual/_httpParameterReadBoolean.mjs +4 -0
- package/lib/_virtual/_httpParameterReadBoolean.mjs.map +1 -0
- package/lib/_virtual/_httpParameterReadNumber.mjs +4 -0
- package/lib/_virtual/_httpParameterReadNumber.mjs.map +1 -0
- package/lib/_virtual/_httpParameterReadString.mjs +4 -0
- package/lib/_virtual/_httpParameterReadString.mjs.map +1 -0
- package/lib/_virtual/_httpQueryParseURLSearchParams.mjs +4 -0
- package/lib/_virtual/_httpQueryParseURLSearchParams.mjs.map +1 -0
- package/lib/_virtual/_httpQueryReadArray.mjs +4 -0
- package/lib/_virtual/_httpQueryReadArray.mjs.map +1 -0
- package/lib/_virtual/_httpQueryReadBigint.mjs +4 -0
- package/lib/_virtual/_httpQueryReadBigint.mjs.map +1 -0
- package/lib/_virtual/_httpQueryReadBoolean.mjs +4 -0
- package/lib/_virtual/_httpQueryReadBoolean.mjs.map +1 -0
- package/lib/_virtual/_httpQueryReadNumber.mjs +4 -0
- package/lib/_virtual/_httpQueryReadNumber.mjs.map +1 -0
- package/lib/_virtual/_httpQueryReadString.mjs +4 -0
- package/lib/_virtual/_httpQueryReadString.mjs.map +1 -0
- package/lib/_virtual/_isBetween.mjs +4 -0
- package/lib/_virtual/_isBetween.mjs.map +1 -0
- package/lib/_virtual/_isBigintString.mjs +4 -0
- package/lib/_virtual/_isBigintString.mjs.map +1 -0
- package/lib/_virtual/_isFormatByte.mjs +4 -0
- package/lib/_virtual/_isFormatByte.mjs.map +1 -0
- package/lib/_virtual/_isFormatDate.mjs +4 -0
- package/lib/_virtual/_isFormatDate.mjs.map +1 -0
- package/lib/_virtual/_isFormatDateTime.mjs +4 -0
- package/lib/_virtual/_isFormatDateTime.mjs.map +1 -0
- package/lib/_virtual/_isFormatDuration.mjs +4 -0
- package/lib/_virtual/_isFormatDuration.mjs.map +1 -0
- package/lib/_virtual/_isFormatEmail.mjs +4 -0
- package/lib/_virtual/_isFormatEmail.mjs.map +1 -0
- package/lib/_virtual/_isFormatHostname.mjs +4 -0
- package/lib/_virtual/_isFormatHostname.mjs.map +1 -0
- package/lib/_virtual/_isFormatIdnEmail.mjs +4 -0
- package/lib/_virtual/_isFormatIdnEmail.mjs.map +1 -0
- package/lib/_virtual/_isFormatIdnHostname.mjs +4 -0
- package/lib/_virtual/_isFormatIdnHostname.mjs.map +1 -0
- package/lib/_virtual/_isFormatIpv4.mjs +4 -0
- package/lib/_virtual/_isFormatIpv4.mjs.map +1 -0
- package/lib/_virtual/_isFormatIpv6.mjs +4 -0
- package/lib/_virtual/_isFormatIpv6.mjs.map +1 -0
- package/lib/_virtual/_isFormatIri.mjs +4 -0
- package/lib/_virtual/_isFormatIri.mjs.map +1 -0
- package/lib/_virtual/_isFormatIriReference.mjs +4 -0
- package/lib/_virtual/_isFormatIriReference.mjs.map +1 -0
- package/lib/_virtual/_isFormatJsonPointer.mjs +4 -0
- package/lib/_virtual/_isFormatJsonPointer.mjs.map +1 -0
- package/lib/_virtual/_isFormatPassword.mjs +4 -0
- package/lib/_virtual/_isFormatPassword.mjs.map +1 -0
- package/lib/_virtual/_isFormatRegex.mjs +4 -0
- package/lib/_virtual/_isFormatRegex.mjs.map +1 -0
- package/lib/_virtual/_isFormatRelativeJsonPointer.mjs +4 -0
- package/lib/_virtual/_isFormatRelativeJsonPointer.mjs.map +1 -0
- package/lib/_virtual/_isFormatTime.mjs +4 -0
- package/lib/_virtual/_isFormatTime.mjs.map +1 -0
- package/lib/_virtual/_isFormatUri.mjs +4 -0
- package/lib/_virtual/_isFormatUri.mjs.map +1 -0
- package/lib/_virtual/_isFormatUriReference.mjs +4 -0
- package/lib/_virtual/_isFormatUriReference.mjs.map +1 -0
- package/lib/_virtual/_isFormatUriTemplate.mjs +4 -0
- package/lib/_virtual/_isFormatUriTemplate.mjs.map +1 -0
- package/lib/_virtual/_isFormatUrl.mjs +4 -0
- package/lib/_virtual/_isFormatUrl.mjs.map +1 -0
- package/lib/_virtual/_isFormatUuid.mjs +4 -0
- package/lib/_virtual/_isFormatUuid.mjs.map +1 -0
- package/lib/_virtual/_isTypeFloat.mjs +4 -0
- package/lib/_virtual/_isTypeFloat.mjs.map +1 -0
- package/lib/_virtual/_isTypeInt32.mjs +4 -0
- package/lib/_virtual/_isTypeInt32.mjs.map +1 -0
- package/lib/_virtual/_isTypeInt64.mjs +4 -0
- package/lib/_virtual/_isTypeInt64.mjs.map +1 -0
- package/lib/_virtual/_isTypeUint32.mjs +4 -0
- package/lib/_virtual/_isTypeUint32.mjs.map +1 -0
- package/lib/_virtual/_isTypeUint64.mjs +4 -0
- package/lib/_virtual/_isTypeUint64.mjs.map +1 -0
- package/lib/_virtual/_isUniqueItems.mjs +4 -0
- package/lib/_virtual/_isUniqueItems.mjs.map +1 -0
- package/lib/_virtual/_jsonStringifyNumber.mjs +4 -0
- package/lib/_virtual/_jsonStringifyNumber.mjs.map +1 -0
- package/lib/_virtual/_jsonStringifyRest.mjs +4 -0
- package/lib/_virtual/_jsonStringifyRest.mjs.map +1 -0
- package/lib/_virtual/_jsonStringifyString.mjs +4 -0
- package/lib/_virtual/_jsonStringifyString.mjs.map +1 -0
- package/lib/_virtual/_jsonStringifyTail.mjs +4 -0
- package/lib/_virtual/_jsonStringifyTail.mjs.map +1 -0
- package/lib/_virtual/_llmApplicationFinalize.mjs +4 -0
- package/lib/_virtual/_llmApplicationFinalize.mjs.map +1 -0
- package/lib/_virtual/_miscCloneAny.mjs +4 -0
- package/lib/_virtual/_miscCloneAny.mjs.map +1 -0
- package/lib/_virtual/_notationAny.mjs +4 -0
- package/lib/_virtual/_notationAny.mjs.map +1 -0
- package/lib/_virtual/_notationCamel.mjs +4 -0
- package/lib/_virtual/_notationCamel.mjs.map +1 -0
- package/lib/_virtual/_notationPascal.mjs +4 -0
- package/lib/_virtual/_notationPascal.mjs.map +1 -0
- package/lib/_virtual/_notationSnake.mjs +4 -0
- package/lib/_virtual/_notationSnake.mjs.map +1 -0
- package/lib/_virtual/_parseLlmArguments.mjs +4 -0
- package/lib/_virtual/_parseLlmArguments.mjs.map +1 -0
- package/lib/_virtual/_randomArray.mjs +4 -0
- package/lib/_virtual/_randomArray.mjs.map +1 -0
- package/lib/_virtual/_randomBigint.mjs +4 -0
- package/lib/_virtual/_randomBigint.mjs.map +1 -0
- package/lib/_virtual/_randomBoolean.mjs +4 -0
- package/lib/_virtual/_randomBoolean.mjs.map +1 -0
- package/lib/_virtual/_randomFormatByte.mjs +4 -0
- package/lib/_virtual/_randomFormatByte.mjs.map +1 -0
- package/lib/_virtual/_randomFormatDate.mjs +4 -0
- package/lib/_virtual/_randomFormatDate.mjs.map +1 -0
- package/lib/_virtual/_randomFormatDatetime.mjs +4 -0
- package/lib/_virtual/_randomFormatDatetime.mjs.map +1 -0
- package/lib/_virtual/_randomFormatDuration.mjs +4 -0
- package/lib/_virtual/_randomFormatDuration.mjs.map +1 -0
- package/lib/_virtual/_randomFormatEmail.mjs +4 -0
- package/lib/_virtual/_randomFormatEmail.mjs.map +1 -0
- package/lib/_virtual/_randomFormatHostname.mjs +4 -0
- package/lib/_virtual/_randomFormatHostname.mjs.map +1 -0
- package/lib/_virtual/_randomFormatIdnEmail.mjs +4 -0
- package/lib/_virtual/_randomFormatIdnEmail.mjs.map +1 -0
- package/lib/_virtual/_randomFormatIdnHostname.mjs +4 -0
- package/lib/_virtual/_randomFormatIdnHostname.mjs.map +1 -0
- package/lib/_virtual/_randomFormatIpv4.mjs +4 -0
- package/lib/_virtual/_randomFormatIpv4.mjs.map +1 -0
- package/lib/_virtual/_randomFormatIpv6.mjs +4 -0
- package/lib/_virtual/_randomFormatIpv6.mjs.map +1 -0
- package/lib/_virtual/_randomFormatIri.mjs +4 -0
- package/lib/_virtual/_randomFormatIri.mjs.map +1 -0
- package/lib/_virtual/_randomFormatIriReference.mjs +4 -0
- package/lib/_virtual/_randomFormatIriReference.mjs.map +1 -0
- package/lib/_virtual/_randomFormatJsonPointer.mjs +4 -0
- package/lib/_virtual/_randomFormatJsonPointer.mjs.map +1 -0
- package/lib/_virtual/_randomFormatPassword.mjs +4 -0
- package/lib/_virtual/_randomFormatPassword.mjs.map +1 -0
- package/lib/_virtual/_randomFormatRegex.mjs +4 -0
- package/lib/_virtual/_randomFormatRegex.mjs.map +1 -0
- package/lib/_virtual/_randomFormatRelativeJsonPointer.mjs +4 -0
- package/lib/_virtual/_randomFormatRelativeJsonPointer.mjs.map +1 -0
- package/lib/_virtual/_randomFormatTime.mjs +4 -0
- package/lib/_virtual/_randomFormatTime.mjs.map +1 -0
- package/lib/_virtual/_randomFormatUri.mjs +4 -0
- package/lib/_virtual/_randomFormatUri.mjs.map +1 -0
- package/lib/_virtual/_randomFormatUriReference.mjs +4 -0
- package/lib/_virtual/_randomFormatUriReference.mjs.map +1 -0
- package/lib/_virtual/_randomFormatUriTemplate.mjs +4 -0
- package/lib/_virtual/_randomFormatUriTemplate.mjs.map +1 -0
- package/lib/_virtual/_randomFormatUrl.mjs +4 -0
- package/lib/_virtual/_randomFormatUrl.mjs.map +1 -0
- package/lib/_virtual/_randomFormatUuid.mjs +4 -0
- package/lib/_virtual/_randomFormatUuid.mjs.map +1 -0
- package/lib/_virtual/_randomInteger.mjs +4 -0
- package/lib/_virtual/_randomInteger.mjs.map +1 -0
- package/lib/_virtual/_randomNumber.mjs +4 -0
- package/lib/_virtual/_randomNumber.mjs.map +1 -0
- package/lib/_virtual/_randomPattern.mjs +4 -0
- package/lib/_virtual/_randomPattern.mjs.map +1 -0
- package/lib/_virtual/_randomPick.mjs +4 -0
- package/lib/_virtual/_randomPick.mjs.map +1 -0
- package/lib/_virtual/_randomString.mjs +4 -0
- package/lib/_virtual/_randomString.mjs.map +1 -0
- package/lib/_virtual/_throwTypeGuardError.mjs +4 -0
- package/lib/_virtual/_throwTypeGuardError.mjs.map +1 -0
- package/lib/_virtual/_validateReport.mjs +4 -0
- package/lib/_virtual/_validateReport.mjs.map +1 -0
- package/lib/_virtual/functional.mjs +4 -0
- package/lib/_virtual/functional.mjs.map +1 -0
- package/lib/_virtual/http.mjs +4 -0
- package/lib/_virtual/http.mjs.map +1 -0
- package/lib/_virtual/index.mjs +4 -0
- package/lib/_virtual/index.mjs.map +1 -0
- package/lib/_virtual/json.mjs +4 -0
- package/lib/_virtual/json.mjs.map +1 -0
- package/lib/_virtual/llm.mjs +4 -0
- package/lib/_virtual/llm.mjs.map +1 -0
- package/lib/_virtual/misc.mjs +4 -0
- package/lib/_virtual/misc.mjs.map +1 -0
- package/lib/_virtual/module.mjs +4 -0
- package/lib/_virtual/module.mjs.map +1 -0
- package/lib/_virtual/notations.mjs +4 -0
- package/lib/_virtual/notations.mjs.map +1 -0
- package/lib/_virtual/protobuf.mjs +4 -0
- package/lib/_virtual/protobuf.mjs.map +1 -0
- package/lib/_virtual/re-exports.mjs +4 -0
- package/lib/_virtual/re-exports.mjs.map +1 -0
- package/lib/_virtual/reflect.mjs +4 -0
- package/lib/_virtual/reflect.mjs.map +1 -0
- package/lib/_virtual/transform.mjs +4 -0
- package/lib/_virtual/transform.mjs.map +1 -0
- package/lib/_virtual/ttsc.mjs +4 -0
- package/lib/_virtual/ttsc.mjs.map +1 -0
- package/lib/_virtual/typia.mjs +4 -0
- package/lib/_virtual/typia.mjs.map +1 -0
- package/lib/executable/TypiaGenerateWizard.js +84 -2
- package/lib/executable/TypiaGenerateWizard.js.map +1 -1
- package/lib/executable/TypiaGenerateWizard.mjs +5 -56
- package/lib/executable/TypiaGenerateWizard.mjs.map +1 -1
- package/lib/executable/TypiaGenerateWizard2.mjs +172 -0
- package/lib/executable/TypiaGenerateWizard2.mjs.map +1 -0
- package/lib/executable/TypiaSetupWizard.js +37 -43
- package/lib/executable/TypiaSetupWizard.js.map +1 -1
- package/lib/executable/TypiaSetupWizard.mjs +5 -128
- package/lib/executable/TypiaSetupWizard.mjs.map +1 -1
- package/lib/executable/TypiaSetupWizard2.mjs +149 -0
- package/lib/executable/TypiaSetupWizard2.mjs.map +1 -0
- package/lib/executable/generate/ttsc.d.ts +15 -0
- package/lib/executable/generate/ttsc.js +81 -0
- package/lib/executable/generate/ttsc.js.map +1 -0
- package/lib/executable/generate/ttsc.mjs +8 -0
- package/lib/executable/generate/ttsc.mjs.map +1 -0
- package/lib/executable/generate/ttsc2.mjs +95 -0
- package/lib/executable/generate/ttsc2.mjs.map +1 -0
- package/lib/executable/setup/ArgumentParser.js.map +1 -1
- package/lib/executable/setup/ArgumentParser.mjs +5 -21
- package/lib/executable/setup/ArgumentParser.mjs.map +1 -1
- package/lib/executable/setup/ArgumentParser2.mjs +49 -0
- package/lib/executable/setup/ArgumentParser2.mjs.map +1 -0
- package/lib/executable/setup/CommandExecutor.js.map +1 -1
- package/lib/executable/setup/CommandExecutor.mjs +5 -9
- package/lib/executable/setup/CommandExecutor.mjs.map +1 -1
- package/lib/executable/setup/CommandExecutor2.mjs +27 -0
- package/lib/executable/setup/CommandExecutor2.mjs.map +1 -0
- package/lib/executable/setup/FileRetriever.js.map +1 -1
- package/lib/executable/setup/FileRetriever.mjs +5 -18
- package/lib/executable/setup/FileRetriever.mjs.map +1 -1
- package/lib/executable/setup/FileRetriever2.mjs +38 -0
- package/lib/executable/setup/FileRetriever2.mjs.map +1 -0
- package/lib/executable/setup/PackageManager.js.map +1 -1
- package/lib/executable/setup/PackageManager.mjs +5 -59
- package/lib/executable/setup/PackageManager.mjs.map +1 -1
- package/lib/executable/setup/PackageManager2.mjs +94 -0
- package/lib/executable/setup/PackageManager2.mjs.map +1 -0
- package/lib/executable/setup/PluginConfigurator.d.ts +1 -1
- package/lib/executable/setup/PluginConfigurator.js +13 -15
- package/lib/executable/setup/PluginConfigurator.js.map +1 -1
- package/lib/executable/setup/PluginConfigurator.mjs +5 -45
- package/lib/executable/setup/PluginConfigurator.mjs.map +1 -1
- package/lib/executable/setup/PluginConfigurator2.mjs +73 -0
- package/lib/executable/setup/PluginConfigurator2.mjs.map +1 -0
- package/lib/executable/typia.d.ts +1 -0
- package/lib/executable/typia.js +19 -12
- package/lib/executable/typia.js.map +1 -1
- package/lib/executable/typia.mjs +5 -53
- package/lib/executable/typia.mjs.map +1 -1
- package/lib/executable/typia2.mjs +119 -0
- package/lib/executable/typia2.mjs.map +1 -0
- package/lib/functional.js.map +1 -1
- package/lib/functional.mjs +5 -74
- package/lib/functional.mjs.map +1 -1
- package/lib/functional2.mjs +106 -0
- package/lib/functional2.mjs.map +1 -0
- package/lib/http.js.map +1 -1
- package/lib/http.mjs +5 -106
- package/lib/http.mjs.map +1 -1
- package/lib/http2.mjs +146 -0
- package/lib/http2.mjs.map +1 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -22
- package/lib/index.mjs.map +1 -1
- package/lib/index2.mjs +56 -0
- package/lib/index2.mjs.map +1 -0
- package/lib/internal/_IProtobufWriter.mjs +6 -0
- package/lib/internal/_IProtobufWriter.mjs.map +1 -1
- package/lib/internal/_IProtobufWriter2.mjs +14 -0
- package/lib/internal/_IProtobufWriter2.mjs.map +1 -0
- package/lib/internal/_ProtobufReader.js.map +1 -1
- package/lib/internal/_ProtobufReader.mjs +5 -167
- package/lib/internal/_ProtobufReader.mjs.map +1 -1
- package/lib/internal/_ProtobufReader2.mjs +177 -0
- package/lib/internal/_ProtobufReader2.mjs.map +1 -0
- package/lib/internal/_ProtobufSizer.js.map +1 -1
- package/lib/internal/_ProtobufSizer.mjs +6 -120
- package/lib/internal/_ProtobufSizer.mjs.map +1 -1
- package/lib/internal/_ProtobufSizer2.mjs +127 -0
- package/lib/internal/_ProtobufSizer2.mjs.map +1 -0
- package/lib/internal/_ProtobufWriter.js.map +1 -1
- package/lib/internal/_ProtobufWriter.mjs +5 -109
- package/lib/internal/_ProtobufWriter.mjs.map +1 -1
- package/lib/internal/_ProtobufWriter2.mjs +115 -0
- package/lib/internal/_ProtobufWriter2.mjs.map +1 -0
- package/lib/internal/_accessExpressionAsString.js.map +1 -1
- package/lib/internal/_accessExpressionAsString.mjs +6 -42
- package/lib/internal/_accessExpressionAsString.mjs.map +1 -1
- package/lib/internal/_accessExpressionAsString2.mjs +57 -0
- package/lib/internal/_accessExpressionAsString2.mjs.map +1 -0
- package/lib/internal/_assertGuard.js.map +1 -1
- package/lib/internal/_assertGuard.mjs +5 -11
- package/lib/internal/_assertGuard.mjs.map +1 -1
- package/lib/internal/_assertGuard2.mjs +27 -0
- package/lib/internal/_assertGuard2.mjs.map +1 -0
- package/lib/internal/_coerceLlmArguments.js.map +1 -1
- package/lib/internal/_coerceLlmArguments.mjs +5 -3
- package/lib/internal/_coerceLlmArguments.mjs.map +1 -1
- package/lib/internal/_coerceLlmArguments2.mjs +19 -0
- package/lib/internal/_coerceLlmArguments2.mjs.map +1 -0
- package/lib/internal/_createStandardSchema.js.map +1 -1
- package/lib/internal/_createStandardSchema.mjs +6 -131
- package/lib/internal/_createStandardSchema.mjs.map +1 -1
- package/lib/internal/_createStandardSchema2.mjs +146 -0
- package/lib/internal/_createStandardSchema2.mjs.map +1 -0
- package/lib/internal/_functionalTypeGuardErrorFactory.js.map +1 -1
- package/lib/internal/_functionalTypeGuardErrorFactory.mjs +5 -3
- package/lib/internal/_functionalTypeGuardErrorFactory.mjs.map +1 -1
- package/lib/internal/_functionalTypeGuardErrorFactory2.mjs +19 -0
- package/lib/internal/_functionalTypeGuardErrorFactory2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadArray.js.map +1 -1
- package/lib/internal/_httpFormDataReadArray.mjs +6 -2
- package/lib/internal/_httpFormDataReadArray.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadArray2.mjs +17 -0
- package/lib/internal/_httpFormDataReadArray2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadBigint.js.map +1 -1
- package/lib/internal/_httpFormDataReadBigint.mjs +6 -16
- package/lib/internal/_httpFormDataReadBigint.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBigint2.mjs +31 -0
- package/lib/internal/_httpFormDataReadBigint2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadBlob.js.map +1 -1
- package/lib/internal/_httpFormDataReadBlob.mjs +6 -8
- package/lib/internal/_httpFormDataReadBlob.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBlob2.mjs +23 -0
- package/lib/internal/_httpFormDataReadBlob2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadBoolean.js.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean.mjs +6 -14
- package/lib/internal/_httpFormDataReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadBoolean2.mjs +29 -0
- package/lib/internal/_httpFormDataReadBoolean2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadFile.js.map +1 -1
- package/lib/internal/_httpFormDataReadFile.mjs +6 -8
- package/lib/internal/_httpFormDataReadFile.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadFile2.mjs +23 -0
- package/lib/internal/_httpFormDataReadFile2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadNumber.js.map +1 -1
- package/lib/internal/_httpFormDataReadNumber.mjs +6 -12
- package/lib/internal/_httpFormDataReadNumber.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadNumber2.mjs +27 -0
- package/lib/internal/_httpFormDataReadNumber2.mjs.map +1 -0
- package/lib/internal/_httpFormDataReadString.js.map +1 -1
- package/lib/internal/_httpFormDataReadString.mjs +6 -8
- package/lib/internal/_httpFormDataReadString.mjs.map +1 -1
- package/lib/internal/_httpFormDataReadString2.mjs +23 -0
- package/lib/internal/_httpFormDataReadString2.mjs.map +1 -0
- package/lib/internal/_httpHeaderReadBigint.js.map +1 -1
- package/lib/internal/_httpHeaderReadBigint.mjs +6 -10
- package/lib/internal/_httpHeaderReadBigint.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBigint2.mjs +25 -0
- package/lib/internal/_httpHeaderReadBigint2.mjs.map +1 -0
- package/lib/internal/_httpHeaderReadBoolean.js.map +1 -1
- package/lib/internal/_httpHeaderReadBoolean.mjs +6 -8
- package/lib/internal/_httpHeaderReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadBoolean2.mjs +23 -0
- package/lib/internal/_httpHeaderReadBoolean2.mjs.map +1 -0
- package/lib/internal/_httpHeaderReadNumber.js.map +1 -1
- package/lib/internal/_httpHeaderReadNumber.mjs +6 -6
- package/lib/internal/_httpHeaderReadNumber.mjs.map +1 -1
- package/lib/internal/_httpHeaderReadNumber2.mjs +21 -0
- package/lib/internal/_httpHeaderReadNumber2.mjs.map +1 -0
- package/lib/internal/_httpParameterReadBigint.js.map +1 -1
- package/lib/internal/_httpParameterReadBigint.mjs +6 -10
- package/lib/internal/_httpParameterReadBigint.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBigint2.mjs +25 -0
- package/lib/internal/_httpParameterReadBigint2.mjs.map +1 -0
- package/lib/internal/_httpParameterReadBoolean.js.map +1 -1
- package/lib/internal/_httpParameterReadBoolean.mjs +6 -8
- package/lib/internal/_httpParameterReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpParameterReadBoolean2.mjs +23 -0
- package/lib/internal/_httpParameterReadBoolean2.mjs.map +1 -0
- package/lib/internal/_httpParameterReadNumber.js.map +1 -1
- package/lib/internal/_httpParameterReadNumber.mjs +6 -6
- package/lib/internal/_httpParameterReadNumber.mjs.map +1 -1
- package/lib/internal/_httpParameterReadNumber2.mjs +21 -0
- package/lib/internal/_httpParameterReadNumber2.mjs.map +1 -0
- package/lib/internal/_httpParameterReadString.js.map +1 -1
- package/lib/internal/_httpParameterReadString.mjs +6 -2
- package/lib/internal/_httpParameterReadString.mjs.map +1 -1
- package/lib/internal/_httpParameterReadString2.mjs +17 -0
- package/lib/internal/_httpParameterReadString2.mjs.map +1 -0
- package/lib/internal/_httpQueryParseURLSearchParams.js.map +1 -1
- package/lib/internal/_httpQueryParseURLSearchParams.mjs +6 -9
- package/lib/internal/_httpQueryParseURLSearchParams.mjs.map +1 -1
- package/lib/internal/_httpQueryParseURLSearchParams2.mjs +24 -0
- package/lib/internal/_httpQueryParseURLSearchParams2.mjs.map +1 -0
- package/lib/internal/_httpQueryReadArray.js.map +1 -1
- package/lib/internal/_httpQueryReadArray.mjs +6 -2
- package/lib/internal/_httpQueryReadArray.mjs.map +1 -1
- package/lib/internal/_httpQueryReadArray2.mjs +17 -0
- package/lib/internal/_httpQueryReadArray2.mjs.map +1 -0
- package/lib/internal/_httpQueryReadBigint.js.map +1 -1
- package/lib/internal/_httpQueryReadBigint.mjs +6 -10
- package/lib/internal/_httpQueryReadBigint.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBigint2.mjs +25 -0
- package/lib/internal/_httpQueryReadBigint2.mjs.map +1 -0
- package/lib/internal/_httpQueryReadBoolean.js.map +1 -1
- package/lib/internal/_httpQueryReadBoolean.mjs +6 -12
- package/lib/internal/_httpQueryReadBoolean.mjs.map +1 -1
- package/lib/internal/_httpQueryReadBoolean2.mjs +27 -0
- package/lib/internal/_httpQueryReadBoolean2.mjs.map +1 -0
- package/lib/internal/_httpQueryReadNumber.js.map +1 -1
- package/lib/internal/_httpQueryReadNumber.mjs +6 -6
- package/lib/internal/_httpQueryReadNumber.mjs.map +1 -1
- package/lib/internal/_httpQueryReadNumber2.mjs +21 -0
- package/lib/internal/_httpQueryReadNumber2.mjs.map +1 -0
- package/lib/internal/_httpQueryReadString.js.map +1 -1
- package/lib/internal/_httpQueryReadString.mjs +6 -2
- package/lib/internal/_httpQueryReadString.mjs.map +1 -1
- package/lib/internal/_httpQueryReadString2.mjs +17 -0
- package/lib/internal/_httpQueryReadString2.mjs.map +1 -0
- package/lib/internal/_isBetween.js.map +1 -1
- package/lib/internal/_isBetween.mjs +6 -2
- package/lib/internal/_isBetween.mjs.map +1 -1
- package/lib/internal/_isBetween2.mjs +17 -0
- package/lib/internal/_isBetween2.mjs.map +1 -0
- package/lib/internal/_isBigintString.js.map +1 -1
- package/lib/internal/_isBigintString.mjs +6 -10
- package/lib/internal/_isBigintString.mjs.map +1 -1
- package/lib/internal/_isBigintString2.mjs +25 -0
- package/lib/internal/_isBigintString2.mjs.map +1 -0
- package/lib/internal/_isFormatByte.js.map +1 -1
- package/lib/internal/_isFormatByte.mjs +6 -6
- package/lib/internal/_isFormatByte.mjs.map +1 -1
- package/lib/internal/_isFormatByte2.mjs +21 -0
- package/lib/internal/_isFormatByte2.mjs.map +1 -0
- package/lib/internal/_isFormatDate.js.map +1 -1
- package/lib/internal/_isFormatDate.mjs +6 -3
- package/lib/internal/_isFormatDate.mjs.map +1 -1
- package/lib/internal/_isFormatDate2.mjs +18 -0
- package/lib/internal/_isFormatDate2.mjs.map +1 -0
- package/lib/internal/_isFormatDateTime.js.map +1 -1
- package/lib/internal/_isFormatDateTime.mjs +6 -3
- package/lib/internal/_isFormatDateTime.mjs.map +1 -1
- package/lib/internal/_isFormatDateTime2.mjs +18 -0
- package/lib/internal/_isFormatDateTime2.mjs.map +1 -0
- package/lib/internal/_isFormatDuration.js.map +1 -1
- package/lib/internal/_isFormatDuration.mjs +6 -3
- package/lib/internal/_isFormatDuration.mjs.map +1 -1
- package/lib/internal/_isFormatDuration2.mjs +18 -0
- package/lib/internal/_isFormatDuration2.mjs.map +1 -0
- package/lib/internal/_isFormatEmail.js.map +1 -1
- package/lib/internal/_isFormatEmail.mjs +6 -3
- package/lib/internal/_isFormatEmail.mjs.map +1 -1
- package/lib/internal/_isFormatEmail2.mjs +18 -0
- package/lib/internal/_isFormatEmail2.mjs.map +1 -0
- package/lib/internal/_isFormatHostname.js.map +1 -1
- package/lib/internal/_isFormatHostname.mjs +6 -3
- package/lib/internal/_isFormatHostname.mjs.map +1 -1
- package/lib/internal/_isFormatHostname2.mjs +18 -0
- package/lib/internal/_isFormatHostname2.mjs.map +1 -0
- package/lib/internal/_isFormatIdnEmail.js.map +1 -1
- package/lib/internal/_isFormatIdnEmail.mjs +6 -3
- package/lib/internal/_isFormatIdnEmail.mjs.map +1 -1
- package/lib/internal/_isFormatIdnEmail2.mjs +18 -0
- package/lib/internal/_isFormatIdnEmail2.mjs.map +1 -0
- package/lib/internal/_isFormatIdnHostname.js.map +1 -1
- package/lib/internal/_isFormatIdnHostname.mjs +6 -3
- package/lib/internal/_isFormatIdnHostname.mjs.map +1 -1
- package/lib/internal/_isFormatIdnHostname2.mjs +18 -0
- package/lib/internal/_isFormatIdnHostname2.mjs.map +1 -0
- package/lib/internal/_isFormatIpv4.js.map +1 -1
- package/lib/internal/_isFormatIpv4.mjs +6 -3
- package/lib/internal/_isFormatIpv4.mjs.map +1 -1
- package/lib/internal/_isFormatIpv42.mjs +18 -0
- package/lib/internal/_isFormatIpv42.mjs.map +1 -0
- package/lib/internal/_isFormatIpv6.js.map +1 -1
- package/lib/internal/_isFormatIpv6.mjs +6 -3
- package/lib/internal/_isFormatIpv6.mjs.map +1 -1
- package/lib/internal/_isFormatIpv62.mjs +18 -0
- package/lib/internal/_isFormatIpv62.mjs.map +1 -0
- package/lib/internal/_isFormatIri.js.map +1 -1
- package/lib/internal/_isFormatIri.mjs +6 -3
- package/lib/internal/_isFormatIri.mjs.map +1 -1
- package/lib/internal/_isFormatIri2.mjs +18 -0
- package/lib/internal/_isFormatIri2.mjs.map +1 -0
- package/lib/internal/_isFormatIriReference.js.map +1 -1
- package/lib/internal/_isFormatIriReference.mjs +6 -3
- package/lib/internal/_isFormatIriReference.mjs.map +1 -1
- package/lib/internal/_isFormatIriReference2.mjs +18 -0
- package/lib/internal/_isFormatIriReference2.mjs.map +1 -0
- package/lib/internal/_isFormatJsonPointer.js.map +1 -1
- package/lib/internal/_isFormatJsonPointer.mjs +6 -3
- package/lib/internal/_isFormatJsonPointer.mjs.map +1 -1
- package/lib/internal/_isFormatJsonPointer2.mjs +18 -0
- package/lib/internal/_isFormatJsonPointer2.mjs.map +1 -0
- package/lib/internal/_isFormatPassword.js.map +1 -1
- package/lib/internal/_isFormatPassword.mjs +6 -2
- package/lib/internal/_isFormatPassword.mjs.map +1 -1
- package/lib/internal/_isFormatPassword2.mjs +17 -0
- package/lib/internal/_isFormatPassword2.mjs.map +1 -0
- package/lib/internal/_isFormatRegex.js.map +1 -1
- package/lib/internal/_isFormatRegex.mjs +6 -10
- package/lib/internal/_isFormatRegex.mjs.map +1 -1
- package/lib/internal/_isFormatRegex2.mjs +25 -0
- package/lib/internal/_isFormatRegex2.mjs.map +1 -0
- package/lib/internal/_isFormatRelativeJsonPointer.js.map +1 -1
- package/lib/internal/_isFormatRelativeJsonPointer.mjs +6 -3
- package/lib/internal/_isFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/internal/_isFormatRelativeJsonPointer2.mjs +18 -0
- package/lib/internal/_isFormatRelativeJsonPointer2.mjs.map +1 -0
- package/lib/internal/_isFormatTime.js.map +1 -1
- package/lib/internal/_isFormatTime.mjs +6 -3
- package/lib/internal/_isFormatTime.mjs.map +1 -1
- package/lib/internal/_isFormatTime2.mjs +18 -0
- package/lib/internal/_isFormatTime2.mjs.map +1 -0
- package/lib/internal/_isFormatUri.js.map +1 -1
- package/lib/internal/_isFormatUri.mjs +6 -4
- package/lib/internal/_isFormatUri.mjs.map +1 -1
- package/lib/internal/_isFormatUri2.mjs +19 -0
- package/lib/internal/_isFormatUri2.mjs.map +1 -0
- package/lib/internal/_isFormatUriReference.js.map +1 -1
- package/lib/internal/_isFormatUriReference.mjs +6 -3
- package/lib/internal/_isFormatUriReference.mjs.map +1 -1
- package/lib/internal/_isFormatUriReference2.mjs +18 -0
- package/lib/internal/_isFormatUriReference2.mjs.map +1 -0
- package/lib/internal/_isFormatUriTemplate.js.map +1 -1
- package/lib/internal/_isFormatUriTemplate.mjs +6 -3
- package/lib/internal/_isFormatUriTemplate.mjs.map +1 -1
- package/lib/internal/_isFormatUriTemplate2.mjs +18 -0
- package/lib/internal/_isFormatUriTemplate2.mjs.map +1 -0
- package/lib/internal/_isFormatUrl.js.map +1 -1
- package/lib/internal/_isFormatUrl.mjs +6 -3
- package/lib/internal/_isFormatUrl.mjs.map +1 -1
- package/lib/internal/_isFormatUrl2.mjs +18 -0
- package/lib/internal/_isFormatUrl2.mjs.map +1 -0
- package/lib/internal/_isFormatUuid.js.map +1 -1
- package/lib/internal/_isFormatUuid.mjs +6 -3
- package/lib/internal/_isFormatUuid.mjs.map +1 -1
- package/lib/internal/_isFormatUuid2.mjs +18 -0
- package/lib/internal/_isFormatUuid2.mjs.map +1 -0
- package/lib/internal/_isTypeFloat.js.map +1 -1
- package/lib/internal/_isTypeFloat.mjs +6 -4
- package/lib/internal/_isTypeFloat.mjs.map +1 -1
- package/lib/internal/_isTypeFloat2.mjs +19 -0
- package/lib/internal/_isTypeFloat2.mjs.map +1 -0
- package/lib/internal/_isTypeInt32.js.map +1 -1
- package/lib/internal/_isTypeInt32.mjs +6 -4
- package/lib/internal/_isTypeInt32.mjs.map +1 -1
- package/lib/internal/_isTypeInt322.mjs +19 -0
- package/lib/internal/_isTypeInt322.mjs.map +1 -0
- package/lib/internal/_isTypeInt64.js.map +1 -1
- package/lib/internal/_isTypeInt64.mjs +6 -4
- package/lib/internal/_isTypeInt64.mjs.map +1 -1
- package/lib/internal/_isTypeInt642.mjs +19 -0
- package/lib/internal/_isTypeInt642.mjs.map +1 -0
- package/lib/internal/_isTypeUint32.js.map +1 -1
- package/lib/internal/_isTypeUint32.mjs +6 -4
- package/lib/internal/_isTypeUint32.mjs.map +1 -1
- package/lib/internal/_isTypeUint322.mjs +19 -0
- package/lib/internal/_isTypeUint322.mjs.map +1 -0
- package/lib/internal/_isTypeUint64.js.map +1 -1
- package/lib/internal/_isTypeUint64.mjs +6 -4
- package/lib/internal/_isTypeUint64.mjs.map +1 -1
- package/lib/internal/_isTypeUint642.mjs +19 -0
- package/lib/internal/_isTypeUint642.mjs.map +1 -0
- package/lib/internal/_isUniqueItems.js.map +1 -1
- package/lib/internal/_isUniqueItems.mjs +6 -136
- package/lib/internal/_isUniqueItems.mjs.map +1 -1
- package/lib/internal/_isUniqueItems2.mjs +151 -0
- package/lib/internal/_isUniqueItems2.mjs.map +1 -0
- package/lib/internal/_jsonStringifyNumber.js.map +1 -1
- package/lib/internal/_jsonStringifyNumber.mjs +6 -2
- package/lib/internal/_jsonStringifyNumber.mjs.map +1 -1
- package/lib/internal/_jsonStringifyNumber2.mjs +17 -0
- package/lib/internal/_jsonStringifyNumber2.mjs.map +1 -0
- package/lib/internal/_jsonStringifyRest.js.map +1 -1
- package/lib/internal/_jsonStringifyRest.mjs +6 -4
- package/lib/internal/_jsonStringifyRest.mjs.map +1 -1
- package/lib/internal/_jsonStringifyRest2.mjs +19 -0
- package/lib/internal/_jsonStringifyRest2.mjs.map +1 -0
- package/lib/internal/_jsonStringifyString.js.map +1 -1
- package/lib/internal/_jsonStringifyString.mjs +6 -38
- package/lib/internal/_jsonStringifyString.mjs.map +1 -1
- package/lib/internal/_jsonStringifyString2.mjs +53 -0
- package/lib/internal/_jsonStringifyString2.mjs.map +1 -0
- package/lib/internal/_jsonStringifyTail.js.map +1 -1
- package/lib/internal/_jsonStringifyTail.mjs +6 -2
- package/lib/internal/_jsonStringifyTail.mjs.map +1 -1
- package/lib/internal/_jsonStringifyTail2.mjs +17 -0
- package/lib/internal/_jsonStringifyTail2.mjs.map +1 -0
- package/lib/internal/_llmApplicationFinalize.js +1 -7
- package/lib/internal/_llmApplicationFinalize.js.map +1 -1
- package/lib/internal/_llmApplicationFinalize.mjs +5 -15
- package/lib/internal/_llmApplicationFinalize.mjs.map +1 -1
- package/lib/internal/_llmApplicationFinalize2.mjs +19 -0
- package/lib/internal/_llmApplicationFinalize2.mjs.map +1 -0
- package/lib/internal/_miscCloneAny.js.map +1 -1
- package/lib/internal/_miscCloneAny.mjs +6 -60
- package/lib/internal/_miscCloneAny.mjs.map +1 -1
- package/lib/internal/_miscCloneAny2.mjs +75 -0
- package/lib/internal/_miscCloneAny2.mjs.map +1 -0
- package/lib/internal/_notationAny.js.map +1 -1
- package/lib/internal/_notationAny.mjs +6 -35
- package/lib/internal/_notationAny.mjs.map +1 -1
- package/lib/internal/_notationAny2.mjs +50 -0
- package/lib/internal/_notationAny2.mjs.map +1 -0
- package/lib/internal/_notationCamel.mjs +5 -11
- package/lib/internal/_notationCamel.mjs.map +1 -1
- package/lib/internal/_notationCamel2.mjs +27 -0
- package/lib/internal/_notationCamel2.mjs.map +1 -0
- package/lib/internal/_notationPascal.mjs +5 -7
- package/lib/internal/_notationPascal.mjs.map +1 -1
- package/lib/internal/_notationPascal2.mjs +23 -0
- package/lib/internal/_notationPascal2.mjs.map +1 -0
- package/lib/internal/_notationSnake.js.map +1 -1
- package/lib/internal/_notationSnake.mjs +6 -47
- package/lib/internal/_notationSnake.mjs.map +1 -1
- package/lib/internal/_notationSnake2.mjs +62 -0
- package/lib/internal/_notationSnake2.mjs.map +1 -0
- package/lib/internal/_parseLlmArguments.js.map +1 -1
- package/lib/internal/_parseLlmArguments.mjs +5 -3
- package/lib/internal/_parseLlmArguments.mjs.map +1 -1
- package/lib/internal/_parseLlmArguments2.mjs +19 -0
- package/lib/internal/_parseLlmArguments2.mjs.map +1 -0
- package/lib/internal/_randomArray.js.map +1 -1
- package/lib/internal/_randomArray.mjs +5 -14
- package/lib/internal/_randomArray.mjs.map +1 -1
- package/lib/internal/_randomArray2.mjs +32 -0
- package/lib/internal/_randomArray2.mjs.map +1 -0
- package/lib/internal/_randomBigint.js.map +1 -1
- package/lib/internal/_randomBigint.mjs +5 -3
- package/lib/internal/_randomBigint.mjs.map +1 -1
- package/lib/internal/_randomBigint2.mjs +19 -0
- package/lib/internal/_randomBigint2.mjs.map +1 -0
- package/lib/internal/_randomBoolean.js.map +1 -1
- package/lib/internal/_randomBoolean.mjs +6 -2
- package/lib/internal/_randomBoolean.mjs.map +1 -1
- package/lib/internal/_randomBoolean2.mjs +17 -0
- package/lib/internal/_randomBoolean2.mjs.map +1 -0
- package/lib/internal/_randomFormatByte.js.map +1 -1
- package/lib/internal/_randomFormatByte.mjs +6 -3
- package/lib/internal/_randomFormatByte.mjs.map +1 -1
- package/lib/internal/_randomFormatByte2.mjs +18 -0
- package/lib/internal/_randomFormatByte2.mjs.map +1 -0
- package/lib/internal/_randomFormatDate.js +9 -12
- package/lib/internal/_randomFormatDate.js.map +1 -1
- package/lib/internal/_randomFormatDate.mjs +5 -10
- package/lib/internal/_randomFormatDate.mjs.map +1 -1
- package/lib/internal/_randomFormatDate2.mjs +27 -0
- package/lib/internal/_randomFormatDate2.mjs.map +1 -0
- package/lib/internal/_randomFormatDatetime.js +7 -10
- package/lib/internal/_randomFormatDatetime.js.map +1 -1
- package/lib/internal/_randomFormatDatetime.mjs +5 -8
- package/lib/internal/_randomFormatDatetime.mjs.map +1 -1
- package/lib/internal/_randomFormatDatetime2.mjs +25 -0
- package/lib/internal/_randomFormatDatetime2.mjs.map +1 -0
- package/lib/internal/_randomFormatDuration.js.map +1 -1
- package/lib/internal/_randomFormatDuration.mjs +5 -25
- package/lib/internal/_randomFormatDuration.mjs.map +1 -1
- package/lib/internal/_randomFormatDuration2.mjs +42 -0
- package/lib/internal/_randomFormatDuration2.mjs.map +1 -0
- package/lib/internal/_randomFormatEmail.js.map +1 -1
- package/lib/internal/_randomFormatEmail.mjs +5 -7
- package/lib/internal/_randomFormatEmail.mjs.map +1 -1
- package/lib/internal/_randomFormatEmail2.mjs +24 -0
- package/lib/internal/_randomFormatEmail2.mjs.map +1 -0
- package/lib/internal/_randomFormatHostname.js.map +1 -1
- package/lib/internal/_randomFormatHostname.mjs +5 -4
- package/lib/internal/_randomFormatHostname.mjs.map +1 -1
- package/lib/internal/_randomFormatHostname2.mjs +20 -0
- package/lib/internal/_randomFormatHostname2.mjs.map +1 -0
- package/lib/internal/_randomFormatIdnEmail.js.map +1 -1
- package/lib/internal/_randomFormatIdnEmail.mjs +5 -3
- package/lib/internal/_randomFormatIdnEmail.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnEmail2.mjs +19 -0
- package/lib/internal/_randomFormatIdnEmail2.mjs.map +1 -0
- package/lib/internal/_randomFormatIdnHostname.js.map +1 -1
- package/lib/internal/_randomFormatIdnHostname.mjs +5 -3
- package/lib/internal/_randomFormatIdnHostname.mjs.map +1 -1
- package/lib/internal/_randomFormatIdnHostname2.mjs +19 -0
- package/lib/internal/_randomFormatIdnHostname2.mjs.map +1 -0
- package/lib/internal/_randomFormatIpv4.js.map +1 -1
- package/lib/internal/_randomFormatIpv4.mjs +5 -7
- package/lib/internal/_randomFormatIpv4.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv42.mjs +24 -0
- package/lib/internal/_randomFormatIpv42.mjs.map +1 -0
- package/lib/internal/_randomFormatIpv6.js.map +1 -1
- package/lib/internal/_randomFormatIpv6.mjs +5 -7
- package/lib/internal/_randomFormatIpv6.mjs.map +1 -1
- package/lib/internal/_randomFormatIpv62.mjs +24 -0
- package/lib/internal/_randomFormatIpv62.mjs.map +1 -0
- package/lib/internal/_randomFormatIri.js.map +1 -1
- package/lib/internal/_randomFormatIri.mjs +5 -3
- package/lib/internal/_randomFormatIri.mjs.map +1 -1
- package/lib/internal/_randomFormatIri2.mjs +19 -0
- package/lib/internal/_randomFormatIri2.mjs.map +1 -0
- package/lib/internal/_randomFormatIriReference.js.map +1 -1
- package/lib/internal/_randomFormatIriReference.mjs +5 -3
- package/lib/internal/_randomFormatIriReference.mjs.map +1 -1
- package/lib/internal/_randomFormatIriReference2.mjs +19 -0
- package/lib/internal/_randomFormatIriReference2.mjs.map +1 -0
- package/lib/internal/_randomFormatJsonPointer.js.map +1 -1
- package/lib/internal/_randomFormatJsonPointer.mjs +5 -4
- package/lib/internal/_randomFormatJsonPointer.mjs.map +1 -1
- package/lib/internal/_randomFormatJsonPointer2.mjs +20 -0
- package/lib/internal/_randomFormatJsonPointer2.mjs.map +1 -0
- package/lib/internal/_randomFormatPassword.js.map +1 -1
- package/lib/internal/_randomFormatPassword.mjs +5 -6
- package/lib/internal/_randomFormatPassword.mjs.map +1 -1
- package/lib/internal/_randomFormatPassword2.mjs +23 -0
- package/lib/internal/_randomFormatPassword2.mjs.map +1 -0
- package/lib/internal/_randomFormatRegex.js.map +1 -1
- package/lib/internal/_randomFormatRegex.mjs +6 -3
- package/lib/internal/_randomFormatRegex.mjs.map +1 -1
- package/lib/internal/_randomFormatRegex2.mjs +18 -0
- package/lib/internal/_randomFormatRegex2.mjs.map +1 -0
- package/lib/internal/_randomFormatRelativeJsonPointer.js.map +1 -1
- package/lib/internal/_randomFormatRelativeJsonPointer.mjs +5 -6
- package/lib/internal/_randomFormatRelativeJsonPointer.mjs.map +1 -1
- package/lib/internal/_randomFormatRelativeJsonPointer2.mjs +23 -0
- package/lib/internal/_randomFormatRelativeJsonPointer2.mjs.map +1 -0
- package/lib/internal/_randomFormatTime.js.map +1 -1
- package/lib/internal/_randomFormatTime.mjs +5 -9
- package/lib/internal/_randomFormatTime.mjs.map +1 -1
- package/lib/internal/_randomFormatTime2.mjs +26 -0
- package/lib/internal/_randomFormatTime2.mjs.map +1 -0
- package/lib/internal/_randomFormatUri.js.map +1 -1
- package/lib/internal/_randomFormatUri.mjs +5 -3
- package/lib/internal/_randomFormatUri.mjs.map +1 -1
- package/lib/internal/_randomFormatUri2.mjs +19 -0
- package/lib/internal/_randomFormatUri2.mjs.map +1 -0
- package/lib/internal/_randomFormatUriReference.js.map +1 -1
- package/lib/internal/_randomFormatUriReference.mjs +5 -3
- package/lib/internal/_randomFormatUriReference.mjs.map +1 -1
- package/lib/internal/_randomFormatUriReference2.mjs +19 -0
- package/lib/internal/_randomFormatUriReference2.mjs.map +1 -0
- package/lib/internal/_randomFormatUriTemplate.js.map +1 -1
- package/lib/internal/_randomFormatUriTemplate.mjs +5 -3
- package/lib/internal/_randomFormatUriTemplate.mjs.map +1 -1
- package/lib/internal/_randomFormatUriTemplate2.mjs +19 -0
- package/lib/internal/_randomFormatUriTemplate2.mjs.map +1 -0
- package/lib/internal/_randomFormatUrl.js.map +1 -1
- package/lib/internal/_randomFormatUrl.mjs +5 -7
- package/lib/internal/_randomFormatUrl.mjs.map +1 -1
- package/lib/internal/_randomFormatUrl2.mjs +24 -0
- package/lib/internal/_randomFormatUrl2.mjs.map +1 -0
- package/lib/internal/_randomFormatUuid.js.map +1 -1
- package/lib/internal/_randomFormatUuid.mjs +6 -6
- package/lib/internal/_randomFormatUuid.mjs.map +1 -1
- package/lib/internal/_randomFormatUuid2.mjs +21 -0
- package/lib/internal/_randomFormatUuid2.mjs.map +1 -0
- package/lib/internal/_randomInteger.js.map +1 -1
- package/lib/internal/_randomInteger.mjs +6 -43
- package/lib/internal/_randomInteger.mjs.map +1 -1
- package/lib/internal/_randomInteger2.mjs +55 -0
- package/lib/internal/_randomInteger2.mjs.map +1 -0
- package/lib/internal/_randomNumber.js.map +1 -1
- package/lib/internal/_randomNumber.mjs +6 -62
- package/lib/internal/_randomNumber.mjs.map +1 -1
- package/lib/internal/_randomNumber2.mjs +74 -0
- package/lib/internal/_randomNumber2.mjs.map +1 -0
- package/lib/internal/_randomPattern.js.map +1 -1
- package/lib/internal/_randomPattern.mjs +5 -11
- package/lib/internal/_randomPattern.mjs.map +1 -1
- package/lib/internal/_randomPattern2.mjs +30 -0
- package/lib/internal/_randomPattern2.mjs.map +1 -0
- package/lib/internal/_randomPick.js.map +1 -1
- package/lib/internal/_randomPick.mjs +5 -7
- package/lib/internal/_randomPick.mjs.map +1 -1
- package/lib/internal/_randomPick2.mjs +24 -0
- package/lib/internal/_randomPick2.mjs.map +1 -0
- package/lib/internal/_randomString.js.map +1 -1
- package/lib/internal/_randomString.mjs +5 -17
- package/lib/internal/_randomString.mjs.map +1 -1
- package/lib/internal/_randomString2.mjs +36 -0
- package/lib/internal/_randomString2.mjs.map +1 -0
- package/lib/internal/_throwTypeGuardError.js.map +1 -1
- package/lib/internal/_throwTypeGuardError.mjs +5 -5
- package/lib/internal/_throwTypeGuardError.mjs.map +1 -1
- package/lib/internal/_throwTypeGuardError2.mjs +21 -0
- package/lib/internal/_throwTypeGuardError2.mjs.map +1 -0
- package/lib/internal/_validateReport.js.map +1 -1
- package/lib/internal/_validateReport.mjs +6 -21
- package/lib/internal/_validateReport.mjs.map +1 -1
- package/lib/internal/_validateReport2.mjs +37 -0
- package/lib/internal/_validateReport2.mjs.map +1 -0
- package/lib/internal/private/__notationCapitalize.js.map +1 -1
- package/lib/internal/private/__notationCapitalize.mjs +6 -2
- package/lib/internal/private/__notationCapitalize.mjs.map +1 -1
- package/lib/internal/private/__notationCapitalize2.mjs +17 -0
- package/lib/internal/private/__notationCapitalize2.mjs.map +1 -0
- package/lib/internal/private/__notationUnsnake.js.map +1 -1
- package/lib/internal/private/__notationUnsnake.mjs +6 -22
- package/lib/internal/private/__notationUnsnake.mjs.map +1 -1
- package/lib/internal/private/__notationUnsnake2.mjs +37 -0
- package/lib/internal/private/__notationUnsnake2.mjs.map +1 -0
- package/lib/json.js.map +1 -1
- package/lib/json.mjs +5 -70
- package/lib/json.mjs.map +1 -1
- package/lib/json2.mjs +101 -0
- package/lib/json2.mjs.map +1 -0
- package/lib/llm.js.map +1 -1
- package/lib/llm.mjs +5 -38
- package/lib/llm.mjs.map +1 -1
- package/lib/llm2.mjs +61 -0
- package/lib/llm2.mjs.map +1 -0
- package/lib/misc.js.map +1 -1
- package/lib/misc.mjs +5 -70
- package/lib/misc.mjs.map +1 -1
- package/lib/misc2.mjs +101 -0
- package/lib/misc2.mjs.map +1 -0
- package/lib/module.js.map +1 -1
- package/lib/module.mjs +5 -92
- package/lib/module.mjs.map +1 -1
- package/lib/module2.mjs +165 -0
- package/lib/module2.mjs.map +1 -0
- package/lib/notations.js.map +1 -1
- package/lib/notations.mjs +5 -98
- package/lib/notations.mjs.map +1 -1
- package/lib/notations2.mjs +136 -0
- package/lib/notations2.mjs.map +1 -0
- package/lib/protobuf.js.map +1 -1
- package/lib/protobuf.mjs +5 -70
- package/lib/protobuf.mjs.map +1 -1
- package/lib/protobuf2.mjs +101 -0
- package/lib/protobuf2.mjs.map +1 -0
- package/lib/re-exports.mjs +7 -1
- package/lib/re-exports.mjs.map +1 -1
- package/lib/re-exports2.mjs +21 -0
- package/lib/re-exports2.mjs.map +1 -0
- package/lib/reflect.js.map +1 -1
- package/lib/reflect.mjs +5 -14
- package/lib/reflect.mjs.map +1 -1
- package/lib/reflect2.mjs +31 -0
- package/lib/reflect2.mjs.map +1 -0
- package/lib/transform.d.ts +10 -3
- package/lib/transform.js +58 -17
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +7 -3
- package/lib/transform.mjs.map +1 -1
- package/lib/transform2.mjs +78 -0
- package/lib/transform2.mjs.map +1 -0
- package/lib/transformers/NoTransformConfigurationError.js.map +1 -1
- package/lib/transformers/NoTransformConfigurationError.mjs +6 -15
- package/lib/transformers/NoTransformConfigurationError.mjs.map +1 -1
- package/lib/transformers/NoTransformConfigurationError2.mjs +29 -0
- package/lib/transformers/NoTransformConfigurationError2.mjs.map +1 -0
- package/package.json +20 -20
- package/src/executable/TypiaGenerateWizard.ts +95 -2
- package/src/executable/TypiaSetupWizard.ts +45 -49
- package/src/executable/generate/ttsc.ts +101 -0
- package/src/executable/setup/PluginConfigurator.ts +19 -27
- package/src/executable/typia.ts +22 -12
- package/src/internal/_jsonStringifyNumber.ts +2 -2
- package/src/internal/_llmApplicationFinalize.ts +20 -20
- package/src/llm.ts +480 -480
- package/src/re-exports.ts +34 -34
- package/src/transform.ts +71 -3
- package/lib/executable/TypiaPatchWizard.d.ts +0 -4
- package/lib/executable/TypiaPatchWizard.js +0 -49
- package/lib/executable/TypiaPatchWizard.js.map +0 -1
- package/lib/executable/TypiaPatchWizard.mjs +0 -37
- package/lib/executable/TypiaPatchWizard.mjs.map +0 -1
- package/lib/programmers/TypiaProgrammer.d.ts +0 -1
- package/lib/programmers/TypiaProgrammer.js +0 -6
- package/lib/programmers/TypiaProgrammer.js.map +0 -1
- package/lib/programmers/TypiaProgrammer.mjs +0 -2
- package/lib/programmers/TypiaProgrammer.mjs.map +0 -1
- package/src/executable/TypiaPatchWizard.ts +0 -45
- package/src/programmers/TypiaProgrammer.ts +0 -8
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Jeongho Nam
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Jeongho Nam
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
# Typia
|
|
2
|
-

|
|
3
|
-
|
|
4
|
-
[](https://github.com/samchon/typia/blob/master/LICENSE)
|
|
5
|
-
[](https://www.npmjs.com/package/typia)
|
|
6
|
-
[](https://www.npmjs.com/package/typia)
|
|
7
|
-
[](https://github.com/samchon/typia/actions?query=workflow%3Atest)
|
|
8
|
-
[](https://typia.io/docs/)
|
|
9
|
-
[](https://gurubase.io/g/typia)
|
|
10
|
-
[](https://discord.gg/E94XhzrUCZ)
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
// RUNTIME VALIDATORS
|
|
14
|
-
export function is<T>(input: unknown): input is T; // returns boolean
|
|
15
|
-
export function assert<T>(input: unknown): T; // throws TypeGuardError
|
|
16
|
-
export function assertGuard<T>(input: unknown): asserts input is T;
|
|
17
|
-
export function validate<T>(input: unknown): IValidation<T>; // detailed
|
|
18
|
-
|
|
19
|
-
// JSON FUNCTIONS
|
|
20
|
-
export namespace json {
|
|
21
|
-
export function schema<T>(): IJsonSchemaUnit<T>; // JSON schema
|
|
22
|
-
export function assertParse<T>(input: string): T; // type safe parser
|
|
23
|
-
export function assertStringify<T>(input: T): string; // safe and faster
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// AI FUNCTION CALLING HARNESS
|
|
27
|
-
export namespace llm {
|
|
28
|
-
// collection of function calling schemas + validators/parsers
|
|
29
|
-
export function application<Class>(): ILlmApplication<Class>;
|
|
30
|
-
export function structuredOutput<P>(): ILlmStructuredOutput;
|
|
31
|
-
// lenient json parser + type coercion
|
|
32
|
-
export function parse<T>(str: string): T;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// PROTOCOL BUFFER
|
|
36
|
-
export namespace protobuf {
|
|
37
|
-
export function message<T>(): string; // Protocol Buffer message
|
|
38
|
-
export function assertDecode<T>(buffer: Uint8Array): T; // safe decoder
|
|
39
|
-
export function assertEncode<T>(input: T): Uint8Array; // safe encoder
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// RANDOM GENERATOR
|
|
43
|
-
export function random<T>(g?: Partial<IRandomGenerator>): T;
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
`typia` is a transformer library supporting below features:
|
|
47
|
-
|
|
48
|
-
- Super-fast Runtime Validators
|
|
49
|
-
- Enhanced JSON schema and serde functions
|
|
50
|
-
- LLM function calling harness
|
|
51
|
-
- Protocol Buffer encoder and decoder
|
|
52
|
-
- Random data generator
|
|
53
|
-
|
|
54
|
-
> [!NOTE]
|
|
55
|
-
>
|
|
56
|
-
> - **Only one line** required, with pure TypeScript type
|
|
57
|
-
> - Runtime validator is **20,000x faster** than `class-validator`
|
|
58
|
-
> - JSON serialization is **200x faster** than `class-transformer`
|
|
59
|
-
> - LLM function calling harness turns **6.75% → 100%** accuracy
|
|
60
|
-
|
|
61
|
-
## Transformation
|
|
62
|
-
If you call `typia` function, it would be compiled like below.
|
|
63
|
-
|
|
64
|
-
This is the key concept of `typia`, transforming TypeScript type to a runtime function. The `typia.is<T>()` function is transformed to a dedicated type checker by analyzing the target type `T` in the compilation level.
|
|
65
|
-
|
|
66
|
-
This feature enables developers to ensure type safety in their applications, leveraging TypeScript's static typing while also providing runtime validation. Instead of defining additional schemas, you can simply utilize the pure TypeScript type itself.
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
//----
|
|
70
|
-
// examples/checkString.ts
|
|
71
|
-
//----
|
|
72
|
-
import typia, { tags } from "typia";
|
|
73
|
-
export const checkString = typia.createIs<string>();
|
|
74
|
-
|
|
75
|
-
//----
|
|
76
|
-
// examples/checkString.js
|
|
77
|
-
//----
|
|
78
|
-
import typia from "typia";
|
|
79
|
-
export const checkString = (() => {
|
|
80
|
-
return (input) => "string" === typeof input;
|
|
81
|
-
})();
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## Sponsors
|
|
87
|
-
Thanks for your support.
|
|
88
|
-
|
|
89
|
-
Your donation encourages `typia` development.
|
|
90
|
-
|
|
91
|
-
Also, `typia` is re-distributing quarter of donations to [`nonara/ts-patch`](https://github.com/nonara/ts-patch).
|
|
92
|
-
|
|
93
|
-
[](https://opencollective.com/typia)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
## Playground
|
|
99
|
-
You can experience how typia works by [playground website](https://typia.io/playground):
|
|
100
|
-
|
|
101
|
-
- 💻 https://typia.io/playground
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## Guide Documents
|
|
107
|
-
Check out the document in the [website](https://typia.io/docs/):
|
|
108
|
-
|
|
109
|
-
### 🏠 Home
|
|
110
|
-
- [Introduction](https://typia.io/docs/)
|
|
111
|
-
- [Setup](https://typia.io/docs/setup/)
|
|
112
|
-
- [Pure TypeScript](https://typia.io/docs/pure/)
|
|
113
|
-
|
|
114
|
-
### 📖 Features
|
|
115
|
-
- Runtime Validators
|
|
116
|
-
- [`assert()` function](https://typia.io/docs/validators/assert/)
|
|
117
|
-
- [`is()` function](https://typia.io/docs/validators/is/)
|
|
118
|
-
- [`validate()` function](https://typia.io/docs/validators/validate/)
|
|
119
|
-
- [Functional Module](https://typia.io/docs/validators/functional)
|
|
120
|
-
- [Special Tags](https://typia.io/docs/validators/tags/)
|
|
121
|
-
- Enhanced JSON
|
|
122
|
-
- [JSON Schema](https://typia.io/docs/json/schema/)
|
|
123
|
-
- [`stringify()` functions](https://typia.io/docs/json/stringify/)
|
|
124
|
-
- [`parse()` functions](https://typia.io/docs/json/parse/)
|
|
125
|
-
- LLM Function Calling Harness
|
|
126
|
-
- [`application()` function](https://typia.io/docs/llm/application/)
|
|
127
|
-
- [`structuredOutput()` function](https://typia.io/docs/llm/structuredOutput/)
|
|
128
|
-
- [`HttpLlm` module](https://typia.io/docs/llm/http/)
|
|
129
|
-
- [`LlmJson` module](https://typia.io/docs/llm/json/)
|
|
130
|
-
- Protocol Buffer
|
|
131
|
-
- [Message Schema](https://typia.io/docs/protobuf/message)
|
|
132
|
-
- [`decode()` functions](https://typia.io/docs/protobuf/decode/)
|
|
133
|
-
- [`encode()` functions](https://typia.io/docs/protobuf/encode/)
|
|
134
|
-
- [Random Generator](https://typia.io/docs/random/)
|
|
135
|
-
- [Miscellaneous](https://typia.io/docs/misc/)
|
|
136
|
-
|
|
137
|
-
### 🔗 Appendix
|
|
138
|
-
- [API Documents](https://typia.io/api)
|
|
139
|
-
- Utilization Cases
|
|
140
|
-
- [MCP](https://typia.io/docs/utilization/mcp/)
|
|
141
|
-
- [Vercel AI SDK](https://typia.io/docs/utilization/vercel/)
|
|
142
|
-
- [LangChain](https://typia.io/docs/utilization/langchain/)
|
|
143
|
-
- [NestJS](https://typia.io/docs/utilization/nestjs/)
|
|
144
|
-
- [tRPC](https://typia.io/docs/utilization/trpc/)
|
|
145
|
-
- [⇲ Benchmark Result](https://github.com/samchon/typia/tree/master/benchmark/results/11th%20Gen%20Intel(R)%20Core(TM)%20i5-1135G7%20%40%202.40GHz)
|
|
146
|
-
- [⇲ `dev.to` Articles](https://dev.to/samchon/series/22474)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
##
|
|
152
|
-
|
|
153
|
-
|
|
1
|
+
# Typia
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
[](https://github.com/samchon/typia/blob/master/LICENSE)
|
|
5
|
+
[](https://www.npmjs.com/package/typia)
|
|
6
|
+
[](https://www.npmjs.com/package/typia)
|
|
7
|
+
[](https://github.com/samchon/typia/actions?query=workflow%3Atest)
|
|
8
|
+
[](https://typia.io/docs/)
|
|
9
|
+
[](https://gurubase.io/g/typia)
|
|
10
|
+
[](https://discord.gg/E94XhzrUCZ)
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
// RUNTIME VALIDATORS
|
|
14
|
+
export function is<T>(input: unknown): input is T; // returns boolean
|
|
15
|
+
export function assert<T>(input: unknown): T; // throws TypeGuardError
|
|
16
|
+
export function assertGuard<T>(input: unknown): asserts input is T;
|
|
17
|
+
export function validate<T>(input: unknown): IValidation<T>; // detailed
|
|
18
|
+
|
|
19
|
+
// JSON FUNCTIONS
|
|
20
|
+
export namespace json {
|
|
21
|
+
export function schema<T>(): IJsonSchemaUnit<T>; // JSON schema
|
|
22
|
+
export function assertParse<T>(input: string): T; // type safe parser
|
|
23
|
+
export function assertStringify<T>(input: T): string; // safe and faster
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// AI FUNCTION CALLING HARNESS
|
|
27
|
+
export namespace llm {
|
|
28
|
+
// collection of function calling schemas + validators/parsers
|
|
29
|
+
export function application<Class>(): ILlmApplication<Class>;
|
|
30
|
+
export function structuredOutput<P>(): ILlmStructuredOutput;
|
|
31
|
+
// lenient json parser + type coercion
|
|
32
|
+
export function parse<T>(str: string): T;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// PROTOCOL BUFFER
|
|
36
|
+
export namespace protobuf {
|
|
37
|
+
export function message<T>(): string; // Protocol Buffer message
|
|
38
|
+
export function assertDecode<T>(buffer: Uint8Array): T; // safe decoder
|
|
39
|
+
export function assertEncode<T>(input: T): Uint8Array; // safe encoder
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// RANDOM GENERATOR
|
|
43
|
+
export function random<T>(g?: Partial<IRandomGenerator>): T;
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`typia` is a transformer library supporting below features:
|
|
47
|
+
|
|
48
|
+
- Super-fast Runtime Validators
|
|
49
|
+
- Enhanced JSON schema and serde functions
|
|
50
|
+
- LLM function calling harness
|
|
51
|
+
- Protocol Buffer encoder and decoder
|
|
52
|
+
- Random data generator
|
|
53
|
+
|
|
54
|
+
> [!NOTE]
|
|
55
|
+
>
|
|
56
|
+
> - **Only one line** required, with pure TypeScript type
|
|
57
|
+
> - Runtime validator is **20,000x faster** than `class-validator`
|
|
58
|
+
> - JSON serialization is **200x faster** than `class-transformer`
|
|
59
|
+
> - LLM function calling harness turns **6.75% → 100%** accuracy
|
|
60
|
+
|
|
61
|
+
## Transformation
|
|
62
|
+
If you call `typia` function, it would be compiled like below.
|
|
63
|
+
|
|
64
|
+
This is the key concept of `typia`, transforming TypeScript type to a runtime function. The `typia.is<T>()` function is transformed to a dedicated type checker by analyzing the target type `T` in the compilation level.
|
|
65
|
+
|
|
66
|
+
This feature enables developers to ensure type safety in their applications, leveraging TypeScript's static typing while also providing runtime validation. Instead of defining additional schemas, you can simply utilize the pure TypeScript type itself.
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
//----
|
|
70
|
+
// examples/checkString.ts
|
|
71
|
+
//----
|
|
72
|
+
import typia, { tags } from "typia";
|
|
73
|
+
export const checkString = typia.createIs<string>();
|
|
74
|
+
|
|
75
|
+
//----
|
|
76
|
+
// examples/checkString.js
|
|
77
|
+
//----
|
|
78
|
+
import typia from "typia";
|
|
79
|
+
export const checkString = (() => {
|
|
80
|
+
return (input) => "string" === typeof input;
|
|
81
|
+
})();
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## Sponsors
|
|
87
|
+
Thanks for your support.
|
|
88
|
+
|
|
89
|
+
Your donation encourages `typia` development.
|
|
90
|
+
|
|
91
|
+
Also, `typia` is re-distributing quarter of donations to [`nonara/ts-patch`](https://github.com/nonara/ts-patch).
|
|
92
|
+
|
|
93
|
+
[](https://opencollective.com/typia)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## Playground
|
|
99
|
+
You can experience how typia works by [playground website](https://typia.io/playground):
|
|
100
|
+
|
|
101
|
+
- 💻 https://typia.io/playground
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Guide Documents
|
|
107
|
+
Check out the document in the [website](https://typia.io/docs/):
|
|
108
|
+
|
|
109
|
+
### 🏠 Home
|
|
110
|
+
- [Introduction](https://typia.io/docs/)
|
|
111
|
+
- [Setup](https://typia.io/docs/setup/)
|
|
112
|
+
- [Pure TypeScript](https://typia.io/docs/pure/)
|
|
113
|
+
|
|
114
|
+
### 📖 Features
|
|
115
|
+
- Runtime Validators
|
|
116
|
+
- [`assert()` function](https://typia.io/docs/validators/assert/)
|
|
117
|
+
- [`is()` function](https://typia.io/docs/validators/is/)
|
|
118
|
+
- [`validate()` function](https://typia.io/docs/validators/validate/)
|
|
119
|
+
- [Functional Module](https://typia.io/docs/validators/functional)
|
|
120
|
+
- [Special Tags](https://typia.io/docs/validators/tags/)
|
|
121
|
+
- Enhanced JSON
|
|
122
|
+
- [JSON Schema](https://typia.io/docs/json/schema/)
|
|
123
|
+
- [`stringify()` functions](https://typia.io/docs/json/stringify/)
|
|
124
|
+
- [`parse()` functions](https://typia.io/docs/json/parse/)
|
|
125
|
+
- LLM Function Calling Harness
|
|
126
|
+
- [`application()` function](https://typia.io/docs/llm/application/)
|
|
127
|
+
- [`structuredOutput()` function](https://typia.io/docs/llm/structuredOutput/)
|
|
128
|
+
- [`HttpLlm` module](https://typia.io/docs/llm/http/)
|
|
129
|
+
- [`LlmJson` module](https://typia.io/docs/llm/json/)
|
|
130
|
+
- Protocol Buffer
|
|
131
|
+
- [Message Schema](https://typia.io/docs/protobuf/message)
|
|
132
|
+
- [`decode()` functions](https://typia.io/docs/protobuf/decode/)
|
|
133
|
+
- [`encode()` functions](https://typia.io/docs/protobuf/encode/)
|
|
134
|
+
- [Random Generator](https://typia.io/docs/random/)
|
|
135
|
+
- [Miscellaneous](https://typia.io/docs/misc/)
|
|
136
|
+
|
|
137
|
+
### 🔗 Appendix
|
|
138
|
+
- [API Documents](https://typia.io/api)
|
|
139
|
+
- Utilization Cases
|
|
140
|
+
- [MCP](https://typia.io/docs/utilization/mcp/)
|
|
141
|
+
- [Vercel AI SDK](https://typia.io/docs/utilization/vercel/)
|
|
142
|
+
- [LangChain](https://typia.io/docs/utilization/langchain/)
|
|
143
|
+
- [NestJS](https://typia.io/docs/utilization/nestjs/)
|
|
144
|
+
- [tRPC](https://typia.io/docs/utilization/trpc/)
|
|
145
|
+
- [⇲ Benchmark Result](https://github.com/samchon/typia/tree/master/benchmark/results/11th%20Gen%20Intel(R)%20Core(TM)%20i5-1135G7%20%40%202.40GHz)
|
|
146
|
+
- [⇲ `dev.to` Articles](https://dev.to/samchon/series/22474)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## Inspired By
|
|
152
|
+
- [`typescript-is`](https://github.com/woutervh-/typescript-is)
|
|
153
|
+
- [`ts-patch`](https://github.com/nonara/ts-patch)
|
|
Binary file
|
package/lib/TypeGuardError.js
CHANGED
|
@@ -40,12 +40,11 @@ class TypeGuardError extends Error {
|
|
|
40
40
|
this.expected = props.expected;
|
|
41
41
|
this.value = props.value;
|
|
42
42
|
if (props.description || props.value === undefined)
|
|
43
|
-
this.description =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
].join("\n");
|
|
43
|
+
this.description = (_a = props.description) !== null && _a !== void 0 ? _a : [
|
|
44
|
+
"The value at this path is `undefined`.",
|
|
45
|
+
"",
|
|
46
|
+
`Please fill the \`${props.expected}\` typed value next time.`,
|
|
47
|
+
].join("\n");
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
exports.TypeGuardError = TypeGuardError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeGuardError.js","sourceRoot":"","sources":["../src/TypeGuardError.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,
|
|
1
|
+
{"version":3,"file":"TypeGuardError.js","sourceRoot":"","sources":["../src/TypeGuardError.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,oBAAqC,SAAQ,KAAK;IAoDhD;;;;OAIG;IACH,YAAmB,KAA4B;;QAC7C,uBAAuB;QACvB,oEAAoE;QACpE,KAAK,CACH,KAAK,CAAC,OAAO;YACX,YAAY,KAAK,CAAC,MAAM,mBACtB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EACrC,kBAAkB,KAAK,CAAC,QAAQ,EAAE,CACrC,CAAC;QAEF,uBAAuB;QACvB,8EAA8E;QAC9E,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,SAAS,CAAC;QACnC,IAAI,MAAM,CAAC,cAAc;YAAE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;;YACxD,IAAY,CAAC,SAAS,GAAG,KAAK,CAAC;QAErC,iBAAiB;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QACzB,IAAI,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;YAChD,IAAI,CAAC,WAAW,SACd,KAAK,CAAC,WAAW,mCACjB;gBACE,wCAAwC;gBACxC,EAAE;gBACF,qBAAqB,KAAK,CAAC,QAAQ,2BAA2B;aAC/D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;CACF"}
|
package/lib/TypeGuardError.mjs
CHANGED
|
@@ -1,95 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Thrown by {@link assert}, {@link assertGuard}, and other assert-family
|
|
5
|
-
* functions when input doesn't match expected type `T`. Contains detailed
|
|
6
|
-
* information about the first assertion failure:
|
|
7
|
-
*
|
|
8
|
-
* - `method`: Which typia function threw (e.g., `"typia.assert"`)
|
|
9
|
-
* - `path`: Property path where error occurred (e.g., `"input.user.age"`)
|
|
10
|
-
* - `expected`: Expected type string (e.g., `"number & ExclusiveMinimum<19>"`)
|
|
11
|
-
* - `value`: Actual value that failed validation
|
|
12
|
-
*
|
|
13
|
-
* @template T Expected type (for type safety)
|
|
14
|
-
*/
|
|
15
|
-
class TypeGuardError extends Error {
|
|
16
|
-
/**
|
|
17
|
-
* Name of the typia method that threw this error.
|
|
18
|
-
*
|
|
19
|
-
* E.g., `"typia.assert"`, `"typia.assertEquals"`, `"typia.assertGuard"`.
|
|
20
|
-
*/
|
|
21
|
-
method;
|
|
22
|
-
/**
|
|
23
|
-
* Property path where assertion failed.
|
|
24
|
-
*
|
|
25
|
-
* Uses dot notation for nested properties. `undefined` if error occurred at
|
|
26
|
-
* root level.
|
|
27
|
-
*
|
|
28
|
-
* E.g., `"input.age"`, `"input.profile.email"`, `"input[0].name"`.
|
|
29
|
-
*/
|
|
30
|
-
path;
|
|
31
|
-
/**
|
|
32
|
-
* String representation of expected type.
|
|
33
|
-
*
|
|
34
|
-
* E.g., `"string"`, `"number & ExclusiveMinimum<19>"`, `"{ name: string; age:
|
|
35
|
-
* number }"`.
|
|
36
|
-
*/
|
|
37
|
-
expected;
|
|
38
|
-
/**
|
|
39
|
-
* Actual value that failed assertion.
|
|
40
|
-
*
|
|
41
|
-
* The raw value at the error path, useful for debugging.
|
|
42
|
-
*/
|
|
43
|
-
value;
|
|
44
|
-
/**
|
|
45
|
-
* Optional human-readable error description.
|
|
46
|
-
*
|
|
47
|
-
* Primarily for AI agent libraries or custom validation scenarios needing
|
|
48
|
-
* additional context. Standard assertions rely on `path`, `expected`, and
|
|
49
|
-
* `value` for error reporting.
|
|
50
|
-
*/
|
|
51
|
-
description;
|
|
52
|
-
/**
|
|
53
|
-
* Phantom property for TypeScript type safety.
|
|
54
|
-
*
|
|
55
|
-
* Not used at runtime—exists only to preserve generic type `T` in the type
|
|
56
|
-
* system. Always `undefined`.
|
|
57
|
-
*
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
fake_expected_typed_value_;
|
|
61
|
-
/**
|
|
62
|
-
* Creates a new TypeGuardError instance.
|
|
63
|
-
*
|
|
64
|
-
* @param props Error properties
|
|
65
|
-
*/
|
|
66
|
-
constructor(props) {
|
|
67
|
-
// MESSAGE CONSTRUCTION
|
|
68
|
-
// Use custom message if provided, otherwise generate default format
|
|
69
|
-
super(props.message ||
|
|
70
|
-
`Error on ${props.method}(): invalid type${props.path ? ` on ${props.path}` : ""}, expect to be ${props.expected}`);
|
|
71
|
-
// INHERITANCE POLYFILL
|
|
72
|
-
// Set up prototype for compatibility across different JavaScript environments
|
|
73
|
-
const proto = new.target.prototype;
|
|
74
|
-
if (Object.setPrototypeOf)
|
|
75
|
-
Object.setPrototypeOf(this, proto);
|
|
76
|
-
else
|
|
77
|
-
this.__proto__ = proto;
|
|
78
|
-
// ASSIGN MEMBERS
|
|
79
|
-
this.method = props.method;
|
|
80
|
-
this.path = props.path;
|
|
81
|
-
this.expected = props.expected;
|
|
82
|
-
this.value = props.value;
|
|
83
|
-
if (props.description || props.value === undefined)
|
|
84
|
-
this.description =
|
|
85
|
-
props.description ??
|
|
86
|
-
[
|
|
87
|
-
"The value at this path is `undefined`.",
|
|
88
|
-
"",
|
|
89
|
-
`Please fill the \`${props.expected}\` typed value next time.`,
|
|
90
|
-
].join("\n");
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
import { getDefaultExportFromCjs } from './_virtual/_commonjsHelpers.mjs';
|
|
2
|
+
import { __require as requireTypeGuardError } from './TypeGuardError2.mjs';
|
|
93
3
|
|
|
94
|
-
|
|
4
|
+
var TypeGuardErrorExports = requireTypeGuardError();
|
|
5
|
+
var TypeGuardError = /*@__PURE__*/getDefaultExportFromCjs(TypeGuardErrorExports);
|
|
6
|
+
|
|
7
|
+
export { TypeGuardError as default };
|
|
95
8
|
//# sourceMappingURL=TypeGuardError.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeGuardError.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"TypeGuardError.mjs","sources":["TypeGuardError.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireTypeGuardError } from \"/home/samchon/github/samchon/typia@next/packages/typia/lib/TypeGuardError.js\";\nvar TypeGuardErrorExports = requireTypeGuardError();\nexport { TypeGuardErrorExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(TypeGuardErrorExports);"],"names":[],"mappings":";;;AAEA,IAAI,qBAAqB,GAAG,qBAAqB,EAAE;AAEnD,qBAAe,aAAa,uBAAuB,CAAC,qBAAqB,CAAC;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { __exports as TypeGuardError } from './_virtual/TypeGuardError.mjs';
|
|
2
|
+
|
|
3
|
+
var hasRequiredTypeGuardError;
|
|
4
|
+
|
|
5
|
+
function requireTypeGuardError () {
|
|
6
|
+
if (hasRequiredTypeGuardError) return TypeGuardError;
|
|
7
|
+
hasRequiredTypeGuardError = 1;
|
|
8
|
+
Object.defineProperty(TypeGuardError, "__esModule", { value: true });
|
|
9
|
+
TypeGuardError.TypeGuardError = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Error thrown when type assertion fails.
|
|
12
|
+
*
|
|
13
|
+
* Thrown by {@link assert}, {@link assertGuard}, and other assert-family
|
|
14
|
+
* functions when input doesn't match expected type `T`. Contains detailed
|
|
15
|
+
* information about the first assertion failure:
|
|
16
|
+
*
|
|
17
|
+
* - `method`: Which typia function threw (e.g., `"typia.assert"`)
|
|
18
|
+
* - `path`: Property path where error occurred (e.g., `"input.user.age"`)
|
|
19
|
+
* - `expected`: Expected type string (e.g., `"number & ExclusiveMinimum<19>"`)
|
|
20
|
+
* - `value`: Actual value that failed validation
|
|
21
|
+
*
|
|
22
|
+
* @template T Expected type (for type safety)
|
|
23
|
+
*/
|
|
24
|
+
let TypeGuardError$1 = class TypeGuardError extends Error {
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new TypeGuardError instance.
|
|
27
|
+
*
|
|
28
|
+
* @param props Error properties
|
|
29
|
+
*/
|
|
30
|
+
constructor(props) {
|
|
31
|
+
var _a;
|
|
32
|
+
// MESSAGE CONSTRUCTION
|
|
33
|
+
// Use custom message if provided, otherwise generate default format
|
|
34
|
+
super(props.message ||
|
|
35
|
+
`Error on ${props.method}(): invalid type${props.path ? ` on ${props.path}` : ""}, expect to be ${props.expected}`);
|
|
36
|
+
// INHERITANCE POLYFILL
|
|
37
|
+
// Set up prototype for compatibility across different JavaScript environments
|
|
38
|
+
const proto = new.target.prototype;
|
|
39
|
+
if (Object.setPrototypeOf)
|
|
40
|
+
Object.setPrototypeOf(this, proto);
|
|
41
|
+
else
|
|
42
|
+
this.__proto__ = proto;
|
|
43
|
+
// ASSIGN MEMBERS
|
|
44
|
+
this.method = props.method;
|
|
45
|
+
this.path = props.path;
|
|
46
|
+
this.expected = props.expected;
|
|
47
|
+
this.value = props.value;
|
|
48
|
+
if (props.description || props.value === undefined)
|
|
49
|
+
this.description = (_a = props.description) !== null && _a !== void 0 ? _a : [
|
|
50
|
+
"The value at this path is `undefined`.",
|
|
51
|
+
"",
|
|
52
|
+
`Please fill the \`${props.expected}\` typed value next time.`,
|
|
53
|
+
].join("\n");
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
TypeGuardError.TypeGuardError = TypeGuardError$1;
|
|
57
|
+
|
|
58
|
+
return TypeGuardError;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { requireTypeGuardError as __require };
|
|
62
|
+
//# sourceMappingURL=TypeGuardError2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeGuardError2.mjs","sources":["TypeGuardError.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TypeGuardError = void 0;\n/**\n * Error thrown when type assertion fails.\n *\n * Thrown by {@link assert}, {@link assertGuard}, and other assert-family\n * functions when input doesn't match expected type `T`. Contains detailed\n * information about the first assertion failure:\n *\n * - `method`: Which typia function threw (e.g., `\"typia.assert\"`)\n * - `path`: Property path where error occurred (e.g., `\"input.user.age\"`)\n * - `expected`: Expected type string (e.g., `\"number & ExclusiveMinimum<19>\"`)\n * - `value`: Actual value that failed validation\n *\n * @template T Expected type (for type safety)\n */\nclass TypeGuardError extends Error {\n /**\n * Creates a new TypeGuardError instance.\n *\n * @param props Error properties\n */\n constructor(props) {\n var _a;\n // MESSAGE CONSTRUCTION\n // Use custom message if provided, otherwise generate default format\n super(props.message ||\n `Error on ${props.method}(): invalid type${props.path ? ` on ${props.path}` : \"\"}, expect to be ${props.expected}`);\n // INHERITANCE POLYFILL\n // Set up prototype for compatibility across different JavaScript environments\n const proto = new.target.prototype;\n if (Object.setPrototypeOf)\n Object.setPrototypeOf(this, proto);\n else\n this.__proto__ = proto;\n // ASSIGN MEMBERS\n this.method = props.method;\n this.path = props.path;\n this.expected = props.expected;\n this.value = props.value;\n if (props.description || props.value === undefined)\n this.description = (_a = props.description) !== null && _a !== void 0 ? _a : [\n \"The value at this path is `undefined`.\",\n \"\",\n `Please fill the \\`${props.expected}\\` typed value next time.`,\n ].join(\"\\n\");\n }\n}\nexports.TypeGuardError = TypeGuardError;\n//# sourceMappingURL=TypeGuardError.js.map"],"names":["TypeGuardError_1","TypeGuardError"],"mappings":";;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAACA,cAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAAA,cAAA,CAAA,cAAsB,GAAG,MAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;wBACA,MAAM,cAAc,SAAS,KAAK,CAAC;AACnC;AACA;AACA;AACA;AACA;KACI,WAAW,CAAC,KAAK,EAAE;AACvB,SAAQ,IAAI,EAAE;AACd;AACA;AACA,SAAQ,KAAK,CAAC,KAAK,CAAC,OAAO;AAC3B,aAAY,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC/H;AACA;AACA,SAAQ,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS;SAClC,IAAI,MAAM,CAAC,cAAc;AACjC,aAAY,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC;AAC9C;AACA,aAAY,IAAI,CAAC,SAAS,GAAG,KAAK;AAClC;AACA,SAAQ,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM;AAClC,SAAQ,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI;AAC9B,SAAQ,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ;AACtC,SAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK;SACxB,IAAI,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;AAC1D,aAAY,IAAI,CAAC,WAAW,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,WAAW,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,EAAE,GAAG;AACzF,iBAAgB,wCAAwC;AACxD,iBAAgB,EAAE;iBACF,CAAC,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC;AAC9E,cAAa,CAAC,IAAI,CAAC,IAAI,CAAC;AACxB,KAAA;AACA;AACA,CAAAA,cAAA,CAAA,cAAsB,GAAGC,gBAAc;AACvC;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArgumentParser.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandExecutor.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileRetriever.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoTransformConfigurationError.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageManager.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginConfigurator.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeGuardError.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypiaGenerateWizard.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|