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

@@ -19,14 +19,9 @@ import {
SCThingWithCategoriesTranslatableProperties,
SCThingWithCategoriesWithoutReferences,
} from '../base/ThingWithCategories';
import {SCThingMeta} from '../Thing';
import {SCThingMeta, SCThingType} from '../Thing';
import {SCTranslations} from '../types/i18n';
/**
* Type of a point of interest
*/
export type SCPointOfInterestType = 'point of interest';
/**
* A point of interest without references
*/
@@ -42,7 +37,7 @@ export interface SCPointOfInterestWithoutReferences
/**
* Type of a point of interest
*/
type: SCPointOfInterestType;
type: SCThingType.PointOfInterest;
}
/**
@@ -57,7 +52,7 @@ export interface SCPointOfInterest extends SCPointOfInterestWithoutReferences, S
/**
* Type of a point of interest
*/
type: SCPointOfInterestType;
type: SCThingType.PointOfInterest;
}
/**