TypedRoute is a module containing router decorator functions which can
boost up JSON string conversion speed about 200x times faster than
class-transformer. Furthermore, such JSON string conversion is even type
safe through typia.
For reference, if you try to invalid data that is not following the promised
type T, 500 internal server error would be thrown. Also, as TypedRoute
composes JSON string through typia.assertStringify<T>() function, it is not
possible to modify response data through interceptors.
Type safe router decorator functions.
TypedRouteis a module containing router decorator functions which can boost up JSON string conversion speed about 200x times faster thanclass-transformer. Furthermore, such JSON string conversion is even type safe through typia.For reference, if you try to invalid data that is not following the promised type
T, 500 internal server error would be thrown. Also, asTypedRoutecomposes JSON string throughtypia.assertStringify<T>()function, it is not possible to modify response data through interceptors.Author
Jeongho Nam - https://github.com/samchon