mashafrancis/butternut-user

View on GitHub
src/app/auth/dto/credentials.dto.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';

export class CredentialsDto {
    @ApiProperty()
    @IsString()
    readonly email: string;

    @ApiProperty()
    @IsString()
    readonly password: string;
}