From d36577c04e1eea00fb21a5fb774e7f6b1f667d54 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sun, 14 Aug 2022 12:12:05 +0200 Subject: [PATCH] fix: mark abstractModel and abstractService abstract --- src/models/abstractModel.ts | 4 ++-- src/services/abstractService.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/abstractModel.ts b/src/models/abstractModel.ts index a0b76164..9592ec55 100644 --- a/src/models/abstractModel.ts +++ b/src/models/abstractModel.ts @@ -3,10 +3,10 @@ import {omitBy, isNil} from '@/helpers/utils' import type {Right} from '@/constants/rights' export interface IAbstract { - maxRight: Right | null + maxRight: Right | null // FIXME: should this be readonly? } -export default class AbstractModel implements IAbstract { +export default abstract class AbstractModel implements IAbstract { /** * The max right the user has on this object, as returned by the x-max-right header from the api. diff --git a/src/services/abstractService.ts b/src/services/abstractService.ts index 1cc74e9f..8f97bb37 100644 --- a/src/services/abstractService.ts +++ b/src/services/abstractService.ts @@ -40,7 +40,7 @@ function prepareParams(params: Record) { return objectToSnakeCase(params) } -export default class AbstractService { +export default abstract class AbstractService { ///////////////////////////// // Initial variable definitions