refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.

This commit is contained in:
Michel Jonathan Schmitz
2018-12-05 18:51:28 +01:00
parent 641eff15b8
commit f9056eeb33
25 changed files with 134 additions and 192 deletions

View File

@@ -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;
}
/**