import powerbi from 'powerbi-visuals-api' ; import VisualObjectInstanceEnumerationObject = powerbi . VisualObjectInstanceEnumerationObject ; import SettingsBase from './SettingsBase' ; import { getConfig } from '../core/utils/config' ; import { TLocale } from '../core/ui/i18n' ; import { isFeatureEnabled } from '../core/utils/features' ; const defaults = getConfig ( ) . propertyDefaults . developer ; /**
 * Manages data limit override preferences for the visual.
 */ export default class DeveloperSettings extends SettingsBase { public version : string = null ; public showVersionNotification = defaults . showVersionNotification ; public locale : TLocale = < TLocale > defaults . locale ; param enumerationObject param options public processEnumerationObject ( enumerationObject , options = { } ) { enumerationObject . instances . map ( ( i ) => { if ( ! isFeatureEnabled ( 'developerMode' ) ) { enumerationObject . instances = [ ] ; } } ) ; return enumerationObject ; } }