diff --git a/packages/core/src/asset_manager/model/Assets.ts b/packages/core/src/asset_manager/model/Assets.ts index 9d369c371..897a6ed3f 100644 --- a/packages/core/src/asset_manager/model/Assets.ts +++ b/packages/core/src/asset_manager/model/Assets.ts @@ -5,24 +5,21 @@ import AssetImageView from '../view/AssetImageView'; import TypeableCollection from '../../domain_abstract/model/TypeableCollection'; export class Assets extends CollectionWithPatches { + types: any[] | undefined; + target?: any; + onSelect?: any; + getTypes!: () => any[]; + getType!: (id: string) => any; + getBaseType!: () => any; + recognizeType!: (value: any) => any; + addType!: (id: string, definition: any) => void; + constructor(models?: any, options?: any) { super(models, options); } } -export interface Assets { - types: any[]; - target?: any; - onSelect?: any; - getTypes(): any[]; - getType(id: string): any; - getBaseType(): any; - recognizeType(value: any): any; - addType(id: string, definition: any): void; -} - Object.assign(Assets.prototype, TypeableCollection); - Assets.prototype.types = [ { id: 'image',