import {ComponentType} from "../../../enum" import {IService} from "../../interface" import {ConstructorType} from "../../type" import Component from "./NormalComponent" export default class ServiceComponent extends Component implements IService{ public name!: string public cost!: ConstructorType public type: ComponentType = ComponentType.SERVICE constructor({name = '', cost = ServiceComponent} = {}){ super({name, cost}) } }