import { injectable } from '@cloudbeaver/core-di' ; import { LocalStorageSaveService } from './LocalStorageSaveService' ; @ injectable ( ) export class SettingsService { constructor ( private localStorageSaveService ) { } param key param settings registerSettings < T extends Record < any , any > > ( settings , key ) { this . localStorageSaveService . withAutoSave ( settings , key ) ; } }