Skip to content

Commit

Permalink
remove remove-ui-apps-mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Sep 3, 2020
1 parent 5bc0c2d commit b005b33
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 779 deletions.
15 changes: 0 additions & 15 deletions src/legacy/server/kbn_server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ import { HomeServerPluginSetup } from '../../plugins/home/server';
// lot of legacy code was assuming this type only had these two methods
export type KibanaConfig = Pick<LegacyConfig, 'get' | 'has'>;

export interface UiApp {
getId(): string;
}

// Extend the defaults with the plugins and server methods we need.
declare module 'hapi' {
interface PluginProperties {
Expand All @@ -66,13 +62,6 @@ declare module 'hapi' {
interface Server {
config: () => KibanaConfig;
savedObjects: SavedObjectsLegacyService;
injectUiAppVars: (pluginName: string, getAppVars: () => { [key: string]: any }) => void;
getHiddenUiAppById(appId: string): UiApp;
addScopedTutorialContextFactory: (
scopedTutorialContextFactory: (...args: any[]) => any
) => void;
getInjectedUiAppVars: (pluginName: string) => { [key: string]: any };
getUiNavLinks(): Array<{ _id: string }>;
addMemoizedFactoryToRequest: (
name: string,
factoryFn: (request: Request) => Record<string, any>
Expand All @@ -86,10 +75,6 @@ declare module 'hapi' {
getBasePath(): string;
getUiSettingsService(): IUiSettingsClient;
}

interface ResponseToolkit {
renderAppWithDefaultConfig(app: UiApp): ResponseObject;
}
}

type KbnMixinFunc = (kbnServer: KbnServer, server: Server, config: any) => Promise<any> | void;
Expand Down
92 changes: 0 additions & 92 deletions src/legacy/ui/ui_apps/__snapshots__/ui_apps_mixin.test.js.snap

This file was deleted.

Loading

0 comments on commit b005b33

Please sign in to comment.