Comparing version 3.5.0-dev.20230212 to 3.5.0-dev.20230213
@@ -0,3 +1,10 @@ | ||
import { $is_between } from "./functional/$is_between"; | ||
import { $is_email } from "./functional/$is_email"; | ||
import { $is_ipv4 } from "./functional/$is_ipv4"; | ||
import { $is_ipv6 } from "./functional/$is_ipv6"; | ||
import { $is_url } from "./functional/$is_url"; | ||
import { $is_uuid } from "./functional/$is_uuid"; | ||
import { IJsonApplication } from "./schemas/IJsonApplication"; | ||
import { IValidation } from "./IValidation"; | ||
import { TypeGuardError } from "./TypeGuardError"; | ||
export * from "./schemas/IJsonApplication"; | ||
@@ -642,2 +649,12 @@ export * from "./schemas/IJsonComponents"; | ||
export declare function validateStringify<T>(input: unknown): IValidation<string>; | ||
export declare function clone<T>(input: T): T; | ||
export declare namespace clone { | ||
const is_uuid: typeof $is_uuid; | ||
const is_email: typeof $is_email; | ||
const is_url: typeof $is_url; | ||
const is_ipv4: typeof $is_ipv4; | ||
const is_ipv6: typeof $is_ipv6; | ||
const is_between: typeof $is_between; | ||
function throws(props: Pick<TypeGuardError.IProps, "expected" | "value">): void; | ||
} | ||
/** | ||
@@ -1045,2 +1062,4 @@ * Prune, erase superfluous properties. | ||
export declare function createValidateStringify<T>(): (input: unknown) => IValidation<string>; | ||
export declare function createClone(): never; | ||
export declare function createClone<T>(): (input: T) => T; | ||
/** | ||
@@ -1047,0 +1066,0 @@ * Creates a reusable {@link prune} function. |
@@ -28,3 +28,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createValidatePrune = exports.createIsPrune = exports.createAssertPrune = exports.createPrune = exports.createValidateStringify = exports.createIsStringify = exports.createAssertStringify = exports.createStringify = exports.createValidateParse = exports.createAssertParse = exports.createIsParse = exports.createValidateEquals = exports.createEquals = exports.createAssertEquals = exports.createValidate = exports.createIs = exports.createAssertType = exports.createAssert = exports.validatePrune = exports.isPrune = exports.assertPrune = exports.prune = exports.metadata = exports.validateStringify = exports.isStringify = exports.assertStringify = exports.stringify = exports.validateParse = exports.isParse = exports.assertParse = exports.application = exports.validateEquals = exports.equals = exports.assertEquals = exports.validate = exports.is = exports.assertType = exports.assert = void 0; | ||
exports.createValidatePrune = exports.createIsPrune = exports.createAssertPrune = exports.createPrune = exports.createClone = exports.createValidateStringify = exports.createIsStringify = exports.createAssertStringify = exports.createStringify = exports.createValidateParse = exports.createAssertParse = exports.createIsParse = exports.createValidateEquals = exports.createEquals = exports.createAssertEquals = exports.createValidate = exports.createIs = exports.createAssertType = exports.createAssert = exports.validatePrune = exports.isPrune = exports.assertPrune = exports.prune = exports.clone = exports.metadata = exports.validateStringify = exports.isStringify = exports.assertStringify = exports.stringify = exports.validateParse = exports.isParse = exports.assertParse = exports.application = exports.validateEquals = exports.equals = exports.assertEquals = exports.validate = exports.is = exports.assertType = exports.assert = void 0; | ||
var _every_1 = require("./functional/$every"); | ||
@@ -287,2 +287,18 @@ var _guard_1 = require("./functional/$guard"); | ||
exports.metadata = metadata; | ||
function clone() { | ||
halt("clone"); | ||
} | ||
exports.clone = clone; | ||
(function (clone) { | ||
clone.is_uuid = _is_uuid_1.$is_uuid; | ||
clone.is_email = _is_email_1.$is_email; | ||
clone.is_url = _is_url_1.$is_url; | ||
clone.is_ipv4 = _is_ipv4_1.$is_ipv4; | ||
clone.is_ipv6 = _is_ipv6_1.$is_ipv6; | ||
clone.is_between = _is_between_1.$is_between; | ||
function throws(props) { | ||
throw new TypeGuardError_1.TypeGuardError(__assign(__assign({}, props), { method: "typia.clone" })); | ||
} | ||
clone.throws = throws; | ||
})(clone = exports.clone || (exports.clone = {})); | ||
function prune() { | ||
@@ -411,2 +427,7 @@ halt("prune"); | ||
Object.assign(createValidateStringify, validateStringify); | ||
function createClone() { | ||
halt("createClone"); | ||
} | ||
exports.createClone = createClone; | ||
Object.assign(createClone, clone); | ||
function createPrune() { | ||
@@ -413,0 +434,0 @@ halt("createPrune"); |
@@ -10,3 +10,5 @@ "use strict"; | ||
var AssertPruneTransformer_1 = require("./features/miscellaneous/AssertPruneTransformer"); | ||
var CloneTransformer_1 = require("./features/miscellaneous/CloneTransformer"); | ||
var CreateAssertPruneTransformer_1 = require("./features/miscellaneous/CreateAssertPruneTransformer"); | ||
var CreateCloneTransformer_1 = require("./features/miscellaneous/CreateCloneTransformer"); | ||
var CreateIsPruneTransformer_1 = require("./features/miscellaneous/CreateIsPruneTransformer"); | ||
@@ -70,2 +72,3 @@ var CreatePruneTransformer_1 = require("./features/miscellaneous/CreatePruneTransformer"); | ||
validateParse: function () { return ValidateParseTransformer_1.ValidateParseTransformer.transform; }, | ||
application: function () { return ApplicationTransformer_1.ApplicationTransformer.transform; }, | ||
stringify: function () { return StringifyTransformer_1.StringifyTransformer.transform; }, | ||
@@ -75,4 +78,4 @@ assertStringify: function () { return AssertStringifyTransformer_1.AssertStringifyTransformer.transform; }, | ||
validateStringify: function () { return ValidateStringifyTransformer_1.ValidateStringifyTransformer.transform; }, | ||
application: function () { return ApplicationTransformer_1.ApplicationTransformer.transform; }, | ||
metadata: function () { return MetadataTransformer_1.MetadataTransformer.transform; }, | ||
clone: function () { return CloneTransformer_1.CloneTransformer.transform; }, | ||
prune: function () { return PruneTransformer_1.PruneTransformer.transform; }, | ||
@@ -96,2 +99,3 @@ assertPrune: function () { return AssertPruneTransformer_1.AssertPruneTransformer.transform; }, | ||
createValidateStringify: function () { return CreateValidateStringifyProgrammer_1.CreateValidateStringifyTransformer.transform; }, | ||
createClone: function () { return CreateCloneTransformer_1.CreateCloneTransformer.transform; }, | ||
createPrune: function () { return CreatePruneTransformer_1.CreatePruneTransformer.transform; }, | ||
@@ -98,0 +102,0 @@ createAssertPrune: function () { return CreateAssertPruneTransformer_1.CreateAssertPruneTransformer.transform; }, |
{ | ||
"name": "typia", | ||
"version": "3.5.0-dev.20230212", | ||
"version": "3.5.0-dev.20230213", | ||
"description": "Superfast runtime validators with only one line", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1108,2 +1108,24 @@ import { $every } from "./functional/$every"; | ||
export function clone<T>(input: T): T; | ||
export function clone(): never { | ||
halt("clone"); | ||
} | ||
export namespace clone { | ||
export const is_uuid = $is_uuid; | ||
export const is_email = $is_email; | ||
export const is_url = $is_url; | ||
export const is_ipv4 = $is_ipv4; | ||
export const is_ipv6 = $is_ipv6; | ||
export const is_between = $is_between; | ||
export function throws( | ||
props: Pick<TypeGuardError.IProps, "expected" | "value">, | ||
): void { | ||
throw new TypeGuardError({ | ||
...props, | ||
method: "typia.clone", | ||
}); | ||
} | ||
} | ||
/** | ||
@@ -1768,3 +1790,14 @@ * Prune, erase superfluous properties. | ||
----------------------------------------------------------- */ | ||
export function createClone(): never; | ||
export function createClone<T>(): (input: T) => T; | ||
/** | ||
* @internal | ||
*/ | ||
export function createClone(): never { | ||
halt("createClone"); | ||
} | ||
Object.assign(createClone, clone); | ||
/** | ||
* Creates a reusable {@link prune} function. | ||
@@ -1771,0 +1804,0 @@ * |
@@ -7,3 +7,5 @@ import path from "path"; | ||
import { AssertPruneTransformer } from "./features/miscellaneous/AssertPruneTransformer"; | ||
import { CloneTransformer } from "./features/miscellaneous/CloneTransformer"; | ||
import { CreateAssertPruneTransformer } from "./features/miscellaneous/CreateAssertPruneTransformer"; | ||
import { CreateCloneTransformer } from "./features/miscellaneous/CreateCloneTransformer"; | ||
import { CreateIsPruneTransformer } from "./features/miscellaneous/CreateIsPruneTransformer"; | ||
@@ -100,2 +102,3 @@ import { CreatePruneTransformer } from "./features/miscellaneous/CreatePruneTransformer"; | ||
// STRINGIFY FUNCTIONS | ||
application: () => ApplicationTransformer.transform, | ||
stringify: () => StringifyTransformer.transform, | ||
@@ -107,4 +110,4 @@ assertStringify: () => AssertStringifyTransformer.transform, | ||
// MISC | ||
application: () => ApplicationTransformer.transform, | ||
metadata: () => MetadataTransformer.transform, | ||
clone: () => CloneTransformer.transform, | ||
prune: () => PruneTransformer.transform, | ||
@@ -141,2 +144,3 @@ assertPrune: () => AssertPruneTransformer.transform, | ||
// MISC | ||
createClone: () => CreateCloneTransformer.transform, | ||
createPrune: () => CreatePruneTransformer.transform, | ||
@@ -143,0 +147,0 @@ createAssertPrune: () => CreateAssertPruneTransformer.transform, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1458173
703
25924