mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.
This commit is contained in:
@@ -22,14 +22,9 @@ import {
|
||||
SCThingWithCategoriesTranslatableProperties,
|
||||
SCThingWithCategoriesWithoutReferences,
|
||||
} from '../base/ThingWithCategories';
|
||||
import {SCThingMeta} from '../Thing';
|
||||
import {SCThingMeta, SCThingType} from '../Thing';
|
||||
import {SCTranslations} from '../types/i18n';
|
||||
|
||||
/**
|
||||
* Type of an article
|
||||
*/
|
||||
export type SCArticleType = 'article';
|
||||
|
||||
/**
|
||||
* An article without references
|
||||
*/
|
||||
@@ -50,7 +45,7 @@ export interface SCArticleWithoutReferences
|
||||
/**
|
||||
* Type of an article
|
||||
*/
|
||||
type: SCArticleType;
|
||||
type: SCThingType.Article;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,7 +60,7 @@ export interface SCArticle extends SCCreativeWork, SCArticleWithoutReferences {
|
||||
/**
|
||||
* Type of an article
|
||||
*/
|
||||
type: SCArticleType;
|
||||
type: SCThingType.Article;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user