Skip to content
New issue

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

Any Stringified<T> type for JSON.stringify() in typia? #1013

Open
tungrix opened this issue Mar 23, 2024 · 1 comment
Open

Any Stringified<T> type for JSON.stringify() in typia? #1013

tungrix opened this issue Mar 23, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@tungrix
Copy link

tungrix commented Mar 23, 2024

I am reading a stringified from somewhere else and wish to declare its type before JSON.parse(), so x won't be any type.

interface Foo {
  x: number;
  y: string;
}
const foo: Stringified<Foo> = "{x:3,y:'abc'}"
const x = JSON.parse(foo)

Is there any similar type in typia can achieve this? Reference

@samchon
Copy link
Owner

samchon commented Mar 25, 2024

Will you design the Stringified<T> type? I can't imagine it.

@samchon samchon added the help wanted Extra attention is needed label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants