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:
@@ -18,15 +18,10 @@ import {
|
||||
SCCreativeWorkWithoutReferences,
|
||||
} from '../base/CreativeWork';
|
||||
import {SCThingThatCanBeOfferedTranslatableProperties} from '../base/ThingThatCanBeOffered';
|
||||
import {SCThingMeta} from '../Thing';
|
||||
import {SCThingMeta, SCThingType} from '../Thing';
|
||||
import {SCTranslations} from '../types/i18n';
|
||||
import {SCISO8601Date} from '../types/Time';
|
||||
|
||||
/**
|
||||
* Type of a message
|
||||
*/
|
||||
export type SCMessageType = 'message';
|
||||
|
||||
/**
|
||||
* A message without references
|
||||
*/
|
||||
@@ -54,7 +49,7 @@ export interface SCMessageWithoutReferences extends SCCreativeWorkWithoutReferen
|
||||
/**
|
||||
* Type of a message
|
||||
*/
|
||||
type: SCMessageType;
|
||||
type: SCThingType.Message;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +64,7 @@ export interface SCMessage extends SCCreativeWork, SCMessageWithoutReferences {
|
||||
/**
|
||||
* Type of a message
|
||||
*/
|
||||
type: SCMessageType;
|
||||
type: SCThingType.Message;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user