fix some issues; migrate to bun'
This commit is contained in:
parent
cf3d5c6d6f
commit
54293ac3a1
56 changed files with 1360 additions and 764 deletions
|
|
@ -31,12 +31,12 @@ export abstract class MediaTypeModel {
|
|||
|
||||
abstract getTags(): string[];
|
||||
|
||||
toMetaDataObject(): object {
|
||||
toMetaDataObject(): Record<string, unknown> {
|
||||
return { ...this.getWithOutUserData(), ...this.userData, tags: this.getTags().join('/') };
|
||||
}
|
||||
|
||||
getWithOutUserData(): object {
|
||||
const copy = Object.assign({}, this);
|
||||
getWithOutUserData(): Record<string, unknown> {
|
||||
const copy = structuredClone(this) as Record<string, unknown>;
|
||||
delete copy.userData;
|
||||
return copy;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue