mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.
This commit is contained in:
@@ -16,10 +16,9 @@ import {
|
||||
SCThingWithCategoriesSpecificValues, SCThingWithCategoriesTranslatableProperties,
|
||||
SCThingWithCategoriesWithoutReferences,
|
||||
} from '../base/ThingWithCategories';
|
||||
import {SCThingMeta} from '../Thing';
|
||||
import {SCThingMeta, SCThingType} from '../Thing';
|
||||
import { SCTranslations } from '../types/i18n';
|
||||
|
||||
export type SCSettingType = 'setting';
|
||||
export type SCSettingCategories = string;
|
||||
|
||||
/**
|
||||
@@ -43,7 +42,7 @@ export interface SCSettingWithoutReferences
|
||||
/**
|
||||
* The type of this model
|
||||
*/
|
||||
type: SCSettingType;
|
||||
type: SCThingType.Setting;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,6 +58,10 @@ export type SCSettingInputType = SCSettingSingleChoice
|
||||
* A setting with references
|
||||
*/
|
||||
export interface SCSetting extends SCSettingWithoutReferences {
|
||||
/**
|
||||
* The type of this model
|
||||
*/
|
||||
type: SCThingType.Setting;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user