feature/convert-abstract-service-to-ts #1798

Merged
konrad merged 32 commits from dpschen/frontend:feature/convert-abstract-service-to-ts into main 2022-09-06 09:26:49 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit d36577c04e - Show all commits

View File

@ -3,10 +3,10 @@ import {omitBy, isNil} from '@/helpers/utils'
import type {Right} from '@/constants/rights' import type {Right} from '@/constants/rights'
export interface IAbstract { 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<Model extends IAbstract = IAbstract> implements IAbstract {
/** /**
* The max right the user has on this object, as returned by the x-max-right header from the api. * The max right the user has on this object, as returned by the x-max-right header from the api.

View File

@ -40,7 +40,7 @@ function prepareParams(params: Record<string, unknown | unknown[]>) {
return objectToSnakeCase(params) return objectToSnakeCase(params)
} }
export default class AbstractService<Model extends IAbstract = IAbstract> { export default abstract class AbstractService<Model extends IAbstract = IAbstract> {
///////////////////////////// /////////////////////////////
// Initial variable definitions // Initial variable definitions