mongodb-dynamic-api
Version:
Auto generated CRUD API for MongoDB using NestJS
11 lines (10 loc) • 485 B
TypeScript
import { JwtService } from '@nestjs/jwt';
import { ExtendedSocket } from '../interfaces';
import { BaseEntity } from '../models';
export declare abstract class BaseGateway<Entity extends BaseEntity> {
protected readonly jwtService: JwtService;
private readonly logger;
protected constructor(jwtService: JwtService);
protected addUserToSocket(socket: ExtendedSocket<Entity>, isPublic: boolean): void;
protected isValidManyBody<T extends object>(body: T): boolean;
}