Skip to content

Commit 4e7b12e

Browse files
author
Umed Khudoiberdiev
authored
Update README.md
1 parent 0c3bafe commit 4e7b12e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,17 +304,17 @@ import {Expose} from "class-transformer";
304304

305305
export class User {
306306

307-
@Expose("uid")
307+
@Expose({ name: "uid" })
308308
id: number;
309309

310310
firstName: string;
311311

312312
lastName: string;
313313

314-
@Expose("secretKey")
314+
@Expose({ name: "secretKey" })
315315
password: string;
316316

317-
@Expose("fullName")
317+
@Expose({ name: "fullName" })
318318
getFullName() {
319319
return this.firstName + " " + this.lastName;
320320
}

0 commit comments

Comments
 (0)