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:
@@ -18,11 +18,9 @@ import {
|
||||
SCThingWithCategoriesTranslatableProperties,
|
||||
SCThingWithCategoriesWithoutReferences,
|
||||
} from '../base/ThingWithCategories';
|
||||
import {SCThingMeta} from '../Thing';
|
||||
import {SCThingMeta, SCThingType} from '../Thing';
|
||||
import {SCTranslations} from '../types/i18n';
|
||||
|
||||
export type SCBuildingType = 'building';
|
||||
|
||||
export type SCBuildingCategories =
|
||||
'cafe'
|
||||
| 'education'
|
||||
@@ -55,10 +53,14 @@ export interface SCBuildingWithoutReferences
|
||||
/**
|
||||
* Type of the building
|
||||
*/
|
||||
type: SCBuildingType;
|
||||
type: SCThingType.Building;
|
||||
}
|
||||
|
||||
export interface SCBuilding extends SCBuildingWithoutReferences {
|
||||
/**
|
||||
* Type of the building
|
||||
*/
|
||||
type: SCThingType.Building;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user