install prettier
This commit is contained in:
parent
2662c78080
commit
9e2961421d
57 changed files with 2367 additions and 1162 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {MediaType} from '../utils/MediaType';
|
||||
import { MediaType } from '../utils/MediaType';
|
||||
|
||||
export abstract class MediaTypeModel {
|
||||
type: string;
|
||||
|
|
@ -12,7 +12,6 @@ export abstract class MediaTypeModel {
|
|||
|
||||
userData: object;
|
||||
|
||||
|
||||
protected constructor() {
|
||||
this.type = undefined;
|
||||
this.subType = undefined;
|
||||
|
|
@ -33,7 +32,7 @@ export abstract class MediaTypeModel {
|
|||
abstract getTags(): string[];
|
||||
|
||||
toMetaDataObject(): object {
|
||||
return {...this.getWithOutUserData(), ...this.userData, tags: this.getTags().join('/')};
|
||||
return { ...this.getWithOutUserData(), ...this.userData, tags: this.getTags().join('/') };
|
||||
}
|
||||
|
||||
getWithOutUserData(): object {
|
||||
|
|
@ -41,5 +40,4 @@ export abstract class MediaTypeModel {
|
|||
delete copy.userData;
|
||||
return copy;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue