Skip to content

Commit

Permalink
convert dto interfaces to classes
Browse files Browse the repository at this point in the history
preparations for automapper usage
  • Loading branch information
mairisb committed Jul 14, 2024
1 parent fd43b7c commit 513a9a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/dtos/card.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface CardDto {
export class CardDto {
id: number;
name: string;
}
2 changes: 1 addition & 1 deletion packages/common/src/dtos/game.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface GameDto {
export class GameDto {
id: number;
name: string;
players: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/dtos/user.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface UserDto {
export class UserDto {
id: number;
username: string;
email: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
"strictPropertyInitialization": false /* Check for class properties that are declared but not set in the constructor. */,
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
Expand Down

0 comments on commit 513a9a1

Please sign in to comment.