@@ -50,10 +50,6 @@ import { HomeServerPluginSetup } from '../../plugins/home/server';
5050// lot of legacy code was assuming this type only had these two methods
5151export type KibanaConfig = Pick < LegacyConfig , 'get' | 'has' > ;
5252
53- export interface UiApp {
54- getId ( ) : string ;
55- }
56-
5753// Extend the defaults with the plugins and server methods we need.
5854declare module 'hapi' {
5955 interface PluginProperties {
@@ -66,13 +62,6 @@ declare module 'hapi' {
6662 interface Server {
6763 config : ( ) => KibanaConfig ;
6864 savedObjects : SavedObjectsLegacyService ;
69- injectUiAppVars : ( pluginName : string , getAppVars : ( ) => { [ key : string ] : any } ) => void ;
70- getHiddenUiAppById ( appId : string ) : UiApp ;
71- addScopedTutorialContextFactory : (
72- scopedTutorialContextFactory : ( ...args : any [ ] ) => any
73- ) => void ;
74- getInjectedUiAppVars : ( pluginName : string ) => { [ key : string ] : any } ;
75- getUiNavLinks ( ) : Array < { _id : string } > ;
7665 logWithMetadata : ( tags : string [ ] , message : string , meta : Record < string , any > ) => void ;
7766 newPlatform : KbnServer [ 'newPlatform' ] ;
7867 }
@@ -82,10 +71,6 @@ declare module 'hapi' {
8271 getBasePath ( ) : string ;
8372 getUiSettingsService ( ) : IUiSettingsClient ;
8473 }
85-
86- interface ResponseToolkit {
87- renderAppWithDefaultConfig ( app : UiApp ) : ResponseObject ;
88- }
8974}
9075
9176type KbnMixinFunc = ( kbnServer : KbnServer , server : Server , config : any ) => Promise < any > | void ;
0 commit comments