Feature request: typia.application<T>() to return IJsonApplication<T> #760
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
invalid
This doesn't seem right
question
Further information is requested
Projects
Feature Request
I'm using typia not only to validate data, but also to extract type fields (or union values) to runtime array.
E.g. typia makes it possible to do:
however, i cannot properly type result of my "unionValues" function because it accepts IJsonApplication as parameter, so type cannot be extracted from there. Or, I'll have to specify the type multiple times to get something like that:
My request: let's extend IJsonApplication like this:
this "ephemeral" field will be always undefined during the runtime, but will provide a way to extract the original type from IJsonApplication object at compile-time.
What do you think?
BTW, typia.application can be used as base to create some other useful functions, like
objectKeys
, etc.The text was updated successfully, but these errors were encountered: