fix: mark abstractModel and abstractService abstract
This commit is contained in:
parent
2445f0eec8
commit
d36577c04e
@ -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<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.
|
||||
|
@ -40,7 +40,7 @@ function prepareParams(params: Record<string, unknown | unknown[]>) {
|
||||
return objectToSnakeCase(params)
|
||||
}
|
||||
|
||||
export default class AbstractService<Model extends IAbstract = IAbstract> {
|
||||
export default abstract class AbstractService<Model extends IAbstract = IAbstract> {
|
||||
|
||||
/////////////////////////////
|
||||
// Initial variable definitions
|
||||
|
Loading…
x
Reference in New Issue
Block a user