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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user