refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.

This commit is contained in:
Michel Jonathan Schmitz
2018-12-05 18:51:28 +01:00
parent 641eff15b8
commit f9056eeb33
25 changed files with 134 additions and 192 deletions

View File

@@ -13,12 +13,7 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCThingInPlace} from '../base/ThingInPlace';
import {SCThing, SCThingMeta} from '../Thing';
/**
* Type of an organization
*/
export type SCOrganizationType = 'organization';
import {SCThing, SCThingMeta, SCThingType} from '../Thing';
/**
* An organization without references
@@ -27,7 +22,7 @@ export interface SCOrganizationWithoutReferences extends SCThing {
/**
* Type of an organization
*/
type: SCOrganizationType;
type: SCThingType.Organization;
}
/**
@@ -37,7 +32,7 @@ export interface SCOrganization extends SCOrganizationWithoutReferences, SCThing
/**
* Type of an organization
*/
type: SCOrganizationType;
type: SCThingType.Organization;
}
/**