import { Injectable } from '@nestjs/common' ; @ Injectable ( ) export class BrakesRegistry { private readonly brakes = new Map < string , any > ( ) ; addBrakes ( name , brakes ) { this . brakes . set ( name , brakes ) ; } getBrakes ( name ) { return this . brakes . get ( name ) ; } }