UNPKG

callcatcher

Version:
29 lines (28 loc) 821 B
import { Report } from '../models/report'; /** * This ReportService singleton lets the library interface with NeDB. */ export declare class ReportService { private static instance; private dbs; /** * Private constructor. * Follows the singleton design pattern * @private */ private constructor(); /** * Return the Singleton instance, and instantiates it if needed. * Follows the singleton design pattern * @return {ReportService} */ static getInstance(): ReportService; /** * This method is reachable after getting the actual * instance of the service using the `getInstance()` method. * @see Report * @param {number} port * @return {Report} */ getReport(port: number): Promise<Report>; }