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 {SCAcademicTermWithoutReferences} from '../base/AcademicTerm';
import {SCThingMeta} from '../Thing';
/**
* Type of a semester
*/
export type SCSemesterType = 'semester';
import {SCThingMeta, SCThingType} from '../Thing';
/**
* A semester without references
@@ -34,13 +29,17 @@ export interface SCSemesterWithoutReferences extends SCAcademicTermWithoutRefere
/**
* Type of the semester
*/
type: SCSemesterType;
type: SCThingType.Semester;
}
/**
* A semester
*/
export interface SCSemester extends SCSemesterWithoutReferences {
/**
* Type of the semester
*/
type: SCThingType.Semester;
}
/**