import { IUiSettingsClient } from 'src/core/server' ; import { UiSettingsCommon } from '../../common/index_patterns' ; export class UiSettingsServerToCommon implements UiSettingsCommon { private uiSettings : IUiSettingsClient ; constructor ( uiSettings ) { this . uiSettings = uiSettings ; } get ( key ) { return this . uiSettings . get ( key ) ; } getAll ( ) { return this . uiSettings . getAll ( ) ; } set ( key , value ) { return this . uiSettings . set ( key , value ) ; } remove ( key ) { return this . uiSettings . remove ( key ) ; } }