UNPKG

@jvhaile/loopback4-helper

Version:
10 lines (8 loc) 547 B
import {DefaultCrudRepository, Entity, juggler} from "@loopback/repository"; import {BaseSession, BaseSessionRelations} from "../models/base.session.model"; import {TimeStampedRepository} from "./time.stamped.repository"; export class BaseSessionRepository<T extends BaseSession=BaseSession, R extends BaseSessionRelations=BaseSessionRelations> extends TimeStampedRepository<T, string, R> { constructor(entityClass: typeof Entity & { prototype: T }, dataSource: juggler.DataSource) { super(entityClass, dataSource); } }