libs/core/src/lib/services/taly-resources.service.ts
[key: string]:
|
import { Observable } from 'rxjs';
import { BuildingBlockInterface } from '../building-block/building-block-interface';
import { ResourceObject } from '../resource-object.model';
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface ResourcesConfiguration {
[key: string]: ResourceObject | StaticResource;
}
export type StaticResource = boolean | number | string | object | unknown[] | null;
export abstract class TalyResourcesService {
abstract handleResources(
buildingBlock: BuildingBlockInterface,
resourcesMap?: ResourcesConfiguration
): Observable<Record<string, StaticResource>>;
}