zanminkian

Results 33 comments of zanminkian

> I'm no sure if we should add yet another decorator. There are too much decorators already 🤔 > > What about: > > ```ts > @UseInterceptors(new ClassSerializerInterceptor({ returnType: UserEntity...

@jmcdo29 Add a custom interceptor before ClassSerializerInterceptor is easy. But if Nest allow to serialize plain object out of box will be better imo. Just do serializing in ONE interceptor...

If this feature is reasonable, I will add docs and unit test later. Any suggestion please let me know.

> Should we update this new option to say "none (skip installing packages)" instead of just "none" as one (newcomers to JS world) can think there's a "none" package manager?...

@micalevisk I found it's not very elegant. I will convert this PR to draft. The elegant way is asking user 2 questions: 1. Which package manager would you like to...

> @micalevisk I found it's not very elegant. I will convert this PR to draft. The elegant way is asking user 2 questions: > > 1. Which package manager would...

> IMO the fewer questions we could ask the better (to make the scaffolding process as straightforward & quick as possible) Got it. And I found #1457 has code conflict...

```ts import { ValidateBy, ValidationOptions } from 'class-validator' import { ValidationArguments } from 'class-validator/types/validation/ValidationArguments' const IS_TYPE = 'isType' export function IsType( types: Array< | 'string' | 'number' | 'bigint' |...

ts已经很流行,建议用ts重写。

这个sdk没有ts声明,不跟随主流就算了,ncc打包完不能生成单个js文件,还还有很多json依赖,这就很难受。