We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$clone()
The $clone() function is used by typia.misc.clone<T>() function when some value has any type.
typia.misc.clone<T>()
any
By the way, return type of typia.misc.clone<T>() is Resolved<T>, but $clone() function is returning Primitive<T> type.
Resolved<T>
Primitive<T>
Also, its function is just returning JSON level hard copying: JSON.parse(JSON.stringify(value)).
JSON.parse(JSON.stringify(value))
Therefore, the $clone() function's return type and main logic must be changed, suitable for its origin spec.
The text was updated successfully, but these errors were encountered:
c5ac612
Merge pull request #1162 from samchon/features/clone
577ab21
Fix #1161: change `$clone()` proper.
samchon
No branches or pull requests
The
$clone()
function is used bytypia.misc.clone<T>()
function when some value hasany
type.By the way, return type of
typia.misc.clone<T>()
isResolved<T>
, but$clone()
function is returningPrimitive<T>
type.Also, its function is just returning JSON level hard copying:
JSON.parse(JSON.stringify(value))
.Therefore, the
$clone()
function's return type and main logic must be changed, suitable for its origin spec.The text was updated successfully, but these errors were encountered: