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:
@@ -13,16 +13,11 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCCreativeWork, SCCreativeWorkWithoutReferences} from '../base/CreativeWork';
|
||||
import {SCThingMeta} from '../Thing';
|
||||
import {SCThingMeta, SCThingType} from '../Thing';
|
||||
import {SCLanguage} from '../types/i18n';
|
||||
import {SCISO8601Duration} from '../types/Time';
|
||||
import {SCPersonWithoutReferences} from './Person';
|
||||
|
||||
/**
|
||||
* Type of a video
|
||||
*/
|
||||
export type SCVideoType = 'video';
|
||||
|
||||
/**
|
||||
* A video without references
|
||||
*/
|
||||
@@ -55,7 +50,7 @@ export interface SCVideoWithoutReferences extends SCCreativeWorkWithoutReference
|
||||
/**
|
||||
* Type of an Video
|
||||
*/
|
||||
type: SCVideoType;
|
||||
type: SCThingType.Video;
|
||||
}
|
||||
|
||||
export interface SCVideoSource {
|
||||
@@ -114,7 +109,7 @@ export interface SCVideo extends SCCreativeWork, SCVideoWithoutReferences {
|
||||
/**
|
||||
* Type of a video
|
||||
*/
|
||||
type: SCVideoType;
|
||||
type: SCThingType.Video;
|
||||
}
|
||||
|
||||
export class SCVideoMeta extends SCThingMeta {
|
||||
|
||||
Reference in New Issue
Block a user