typescript-express-starter
Version:
Quick and Easy TypeScript Express Starter
28 lines (24 loc) • 551 B
text/typescript
import { IsEmail, IsString, IsNotEmpty, MinLength, MaxLength } from 'class-validator';
import { InputType, Field } from 'type-graphql';
import { User } from '@typedefs/users.type';
export class CreateUserDto implements Partial<User> {
email: string;
password: string;
}
export class UpdateUserDto implements Partial<User> {
password: string;
}