import { IsObject } from 'class-validator'
import { IPaginationOptions } from 'nestjs-typeorm-paginate'
import { FindManyOptions, FindOptionsWhere } from 'typeorm'

export class PageRequest<T> {
    @IsObject()
    page: IPaginationOptions

    search?: FindOptionsWhere<T> | FindManyOptions<T>
}
