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

non-specified generic argument. #931

Closed
patelvanita360 opened this issue Jan 19, 2024 · 1 comment
Closed

non-specified generic argument. #931

patelvanita360 opened this issue Jan 19, 2024 · 1 comment
Assignees
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@patelvanita360
Copy link

patelvanita360 commented Jan 19, 2024

How to make the interface generic

typia.validate(req.body);
make Icustomer as a T

@samchon samchon self-assigned this Jan 19, 2024
@samchon samchon added duplicate This issue or pull request already exists question Further information is requested labels Jan 19, 2024
@samchon
Copy link
Owner

samchon commented Jan 19, 2024

Not possible.

Make a function with validator type parameter, and let user to assign the typia.createValidate<T>() statement into there.

By the way, if you're using NestJS, you can utilize this one.

https://nestia.io/docs/core/TypedBody/

duplicated - #850

@samchon samchon closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants