Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 3x 3x 3x 3x 3x | import { initializeClassProperties } from '../../utils/class.util'; import type { AppMatcompArgs } from './dto/matcomp.args'; import type { AppMatcompInput } from './matcomp-input.interface'; import type { AppMatcompModel } from './model/matcomp.model'; /** * Matcomp query interface. */ export interface IMatcompQuery { findAll(args: AppMatcompArgs): AppMatcomp[]; findOneById(id: string): AppMatcomp | undefined; } /** * Matcomp mutation interface. */ export interface IMatcompMutation { create(id: AppMatcompInput): AppMatcomp; remove(id: string): AppMatcomp | undefined; } /** * Matcomp interface with initialization. */ export class AppMatcomp implements AppMatcompModel { public id = ''; public name = ''; public description = ''; public creationDate = new Date(); constructor(input?: AppMatcomp | AppMatcompInput) { initializeClassProperties<AppMatcomp | AppMatcompInput>(this, input); } } |