refactor: use enumeration for the type of an origin

This commit is contained in:
Jovan Krunić
2019-01-04 09:58:52 +01:00
parent a4f3fab033
commit e0e0a09c7c
2 changed files with 13 additions and 4 deletions

View File

@@ -41,6 +41,9 @@ export type SCFavoriteDataTypes = SCAcademicEventWithoutReferences
* @validatable
*/
export interface SCFavorite extends SCSaveableThing<SCFavoriteDataTypes> {
/**
* Type of a favorite
*/
type: SCThingType.Favorite;
}