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

@@ -13,12 +13,7 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCEvent, SCEventWithoutReferences} from '../base/Event';
import {SCThingMeta} from '../Thing';
/**
* Type of a sport course
*/
export type SCSportCourseType = 'sport course';
import {SCThingMeta, SCThingType} from '../Thing';
/**
* A sport course without references
@@ -27,7 +22,7 @@ export interface SCSportCourseWithoutReferences extends SCEventWithoutReferences
/**
* Type of a sport course
*/
type: SCSportCourseType;
type: SCThingType.SportCourse;
}
/**
@@ -37,7 +32,7 @@ export interface SCSportCourse extends SCEvent, SCSportCourseWithoutReferences {
/**
* Type of a sport course
*/
type: SCSportCourseType;
type: SCThingType.SportCourse;
}
/**