samchon / nestia-helper

NestJS helper with Type level
MIT License
34 stars 3 forks source link

Route decorator functions to support `typescript-json` #10

Closed samchon closed 2 years ago

samchon commented 2 years ago

For the 2x faster JSON string conversion at the body response.

Those route decrorators would boost up the JSON.stringify() function to be two times faster.

If return type is not clear by some reason, like an abstract controller class with generic argumented return type, it would not use the typescript-json but the pure JSON.stringify() function.

Of course, this booster requires a special configuration on the tsconfig.json file like samchon/typescript-json#tsconfigjson