You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
381 B
11 lines
381 B
3 weeks ago
|
import { User } from './user.entity';
|
||
|
import { Repository } from 'typeorm';
|
||
|
import { CreateUserDto } from './dto/create-user.dto';
|
||
|
export declare class UsersService {
|
||
|
private repo;
|
||
|
constructor(repo: Repository<User>);
|
||
|
findByName(name: string): Promise<User | null>;
|
||
|
findByEmail(email: string): Promise<User | null>;
|
||
|
create(dto: CreateUserDto): Promise<User>;
|
||
|
}
|