mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +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 {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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user