export class CreateCoffeeDto {
@IsString()
readonly name: string;
@IsString()
readonly brand: string;
@IsString({ each: true })
readonly flavors: Array<string>;
}
And then:
export class UpdateCoffeeDto extends PartialType(CreateCoffeeDto) {}
However I can see the Typescript still infers the properties of UpdateCoffeeDto as required. I would assume this to behave just as inbuilt Typescript's Partial utility type does instead. Is the above really intended behavior?