mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user