working on words

This commit is contained in:
2024-12-29 12:04:19 +01:00
commit 03d4a1ba26
8 changed files with 166 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { Expose, Type } from 'class-transformer';
import { UserResponseDTO } from './userresponse.dto';
export class PlayerResponseDTO {
constructor(partial: Partial<PlayerResponseDTO>) {
Object.assign(this, partial);
this.user = partial.user;
}
@Type(() => UserResponseDTO)
@Expose()
user: UserResponseDTO;
@Expose()
score: number;
}