export interface DashboardConfig { turnHideWriteControlsOn ( ) : void ; getHideWriteControls ( ) : boolean ; } export function getDashboardConfig ( hideWriteControls ) { let _hideWriteControls = hideWriteControls ; return { type { boolean } turnHideWriteControlsOn ( ) { _hideWriteControls = true ; } , getHideWriteControls ( ) { return _hideWriteControls ; } , } ; }