Browse Source

fix lint

pull/6691/head
IhorKaleniuk666 4 months ago
parent
commit
bfd98e5714
  1. 21
      packages/core/src/asset_manager/model/Assets.ts

21
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<Asset> {
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',

Loading…
Cancel
Save