import { schema , TypeOf } from '@kbn/config-schema' ; import { ConfigDeprecationProvider } from 'src/core/server' ; import { ServiceConfigDescriptor } from '../internal_types' ; const deprecations = ( { unused , renameFromRoot } ) => [ unused ( 'enabled' ) , renameFromRoot ( 'server.defaultRoute' , 'uiSettings.overrides.defaultRoute' ) , ] ; const configSchema = schema . object ( { overrides : schema . object ( { } , { unknowns : 'allow' } ) , } ) ; export type UiSettingsConfigType = TypeOf < typeof configSchema > ; export const config = { path : 'uiSettings' , schema : configSchema , deprecations , } ;