samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.76k stars 91 forks source link

Simplify `PlainFetcher` and `EncryptedFetcher`. #828

Closed samchon closed 5 months ago

samchon commented 5 months ago

Current PlainFetcher and EncryptedFetcher of @nestia/fetcher is wrapping return type to Primitive type.

By the way, actual return type of some controller method is complicate and the complicate type being exported to the SDK library, the Primitive type can make IDE slower.

This PR avoids such situation, by removing the Primitive type from both PlainFetcher and EncryptedFetcher.