You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in the @kubb/plugin-ts, it supports to generate Date value type to Date with the config dateType: true, but the actual value returned is still string type, as the result we need to manually convert the value to match its type with a custom client.
External documents/projects?
No response
What is the feature you are proposing to solve the problem?
I suggest adding an config to handle the value conversion.
What alternatives have you considered?
Currently we need to handle it with a custom client with manual checking on key and content-type.
soapwong703
changed the title
Suggestion to auto convert date value from type string to type Date
Suggestion to auto convert date value from type string to type DateNov 22, 2024
What is the problem this feature would solve?
Currently in the @kubb/plugin-ts, it supports to generate Date value type to
Date
with the configdateType: true
, but the actual value returned is stillstring
type, as the result we need to manually convert the value to match its type with a custom client.External documents/projects?
No response
What is the feature you are proposing to solve the problem?
I suggest adding an config to handle the value conversion.
What alternatives have you considered?
Currently we need to handle it with a custom client with manual checking on key and content-type.
The text was updated successfully, but these errors were encountered: