Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Typescript to 4.3.5 #104470

Merged
merged 117 commits into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
67b2548
update ts version to 4.3.5
mshustov Feb 13, 2021
c49094d
Fix some typed-react-router/apm ts errors
dgieselaar Jul 21, 2021
7892e6f
Fix: apm ts error
dgieselaar Jul 21, 2021
29044a3
[@kbn/monaco] Transpile for web
Jul 22, 2021
5c0d31c
Resolve property used before initialization
Jul 22, 2021
9d69f94
Update snapshot
Aug 9, 2021
3837610
dont use broken KnownHeaders helper
mshustov Aug 13, 2021
5d384f5
fix errors in Core
mshustov Aug 13, 2021
e2c53d5
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Aug 24, 2021
9e8e7df
More fixes
Aug 25, 2021
b041686
Revert accidental change
Aug 25, 2021
801ce46
More fixes
Aug 25, 2021
ce3215c
More fixes
Aug 26, 2021
2c9e422
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Aug 26, 2021
c7f19a4
Fix TS errors in Upgrade Assistant and Index Management mappings editor.
cjcenizal Aug 26, 2021
924c0c0
Resolve type error reported by https://github.com/elastic/kibana/pull…
justinkambic Sep 1, 2021
b882621
Solve TS problems
stratoula Sep 1, 2021
9b6f3c4
fix kibana-app-services types for TS 4.3.5
jloleysens Sep 1, 2021
c569d3e
Fix Fleet TS errors
kpollich Sep 1, 2021
a6c8e07
Implemented better fix for Uptime type issues.
justinkambic Sep 1, 2021
d4bc9e0
Merge pull request #6 from stratoula/fix-vis-editors-failures
tylersmalley Sep 1, 2021
930bf97
Update fleet headers type
kpollich Sep 1, 2021
720b950
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Sep 1, 2021
8bf1ced
Fixes
Sep 1, 2021
949bd50
APM Type fixes
dgieselaar Sep 6, 2021
5f857c0
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Sep 7, 2021
c28fbe4
More fixes
Sep 14, 2021
297c1bb
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Sep 14, 2021
3a6f7f6
Apply maps fix by Thomas
Sep 14, 2021
693383a
Another update from Thomas
Sep 14, 2021
27fd24d
fix type on search strategy in security solutions
XavierM Sep 15, 2021
c6b5475
Fix template literal types used in siem
kqualters-elastic Sep 15, 2021
d23dd2f
Merge pull request #7 from XavierM/ts-4-3-5
tylersmalley Sep 15, 2021
aa2ef4a
Merge pull request #8 from kqualters-elastic/ts-4-3-4
tylersmalley Sep 15, 2021
bd02f80
Fixes
Sep 15, 2021
dcea043
Fix resolver side effect simulator type
kqualters-elastic Sep 15, 2021
be6f865
Merge pull request #9 from kqualters-elastic/ts-4-3-4
tylersmalley Sep 15, 2021
e8dcba7
remove updatedflow boolean
parkiino Sep 23, 2021
93dc843
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Oct 1, 2021
7cd8af6
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Oct 7, 2021
1e54200
Fixes and ignores
Oct 7, 2021
355d9e6
Merge remote-tracking branch 'tylersmalley/ts-4-3-4' into ts-4-3-4
parkiino Oct 12, 2021
7f8adc3
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Oct 13, 2021
33574fc
skip
Oct 13, 2021
8ac8edf
Merge remote-tracking branch 'upstream/master' into ts-4-3-4
Oct 15, 2021
05c4ce8
ESLint updates - and not use declare for now
Oct 16, 2021
85994f4
Update API docs
Oct 16, 2021
a5c7f7a
Merge remote-tracking branch 'upstream/main' into ts-4-3-4
Nov 1, 2021
6e7834f
Merge remote-tracking branch 'upstream/main' into ts-4-3-4
Nov 1, 2021
7059a11
Updates
Nov 1, 2021
4fa7f9d
restore eslint ignore
Nov 1, 2021
2a2d248
remove ts ignores for security solution mgmt
parkiino Nov 2, 2021
57c0d2b
Merge branch 'ts-4-3-4' of github.com:parkiino/kibana into ts-4-3-4
parkiino Nov 2, 2021
cc86f85
Merge remote-tracking branch 'upstream/main' into ts-4-3-4
Nov 4, 2021
71798c8
Removes ResizeObserver type polyfill
Nov 5, 2021
3aa2fcb
Merge pull request #10 from parkiino/ts-4-3-4
tylersmalley Nov 8, 2021
24897fa
Revert "Removes ResizeObserver type polyfill"
Nov 8, 2021
4982f40
Removes resize-observer-polyfill types only
Nov 8, 2021
a200694
Merge remote-tracking branch 'upstream/main' into ts-4-3-4
Nov 18, 2021
4174720
Fix api docs test failures
brianseeders Nov 18, 2021
809f798
Update API docs
Nov 18, 2021
d35528a
Merge branch 'ts-4-3-4' of https://github.com/tylersmalley/kibana int…
brianseeders Nov 18, 2021
17bace0
Merge branch 'ts-4-3-4' of https://github.com/tylersmalley/kibana int…
brianseeders Nov 18, 2021
e333fdf
Committing change from #118848
Nov 18, 2021
fdced85
Merge branch 'ts-4-3-4' of github.com:tylersmalley/kibana into ts-4-3-4
Nov 18, 2021
a7ceb1c
Merge remote-tracking branch 'upstream/main' into ts-4-3-4
Nov 19, 2021
d634294
expect-error
Nov 19, 2021
0e8b4a2
missed conflict
Nov 19, 2021
74d17e4
Spencer updates
Nov 20, 2021
e8b287b
Updates
Nov 24, 2021
919f1f3
Merge remote-tracking branch 'upstream' into ts-4-3-4
Nov 24, 2021
8c07018
Update yarn.lock
brianseeders Nov 24, 2021
8db01ef
Commit docs changes
brianseeders Nov 24, 2021
66a566e
Ignore some type errors
brianseeders Nov 24, 2021
8480502
Updates
Nov 24, 2021
ce0ea5f
Merge remote-tracking branch 'upstream/main' into ts-4-3-4
Nov 24, 2021
c002a41
Change to ts-ignore
Nov 24, 2021
9513d13
Fix EUI type
Nov 24, 2021
ae76664
Update snapshots
Nov 29, 2021
c6dcf50
Fix more type problems
brianseeders Nov 29, 2021
bce6445
Merge branch 'ts-4-3-4' of https://github.com/tylersmalley/kibana int…
brianseeders Nov 29, 2021
b1756f3
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Nov 29, 2021
aa34a9a
fixup some issues
Nov 30, 2021
20a1822
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Nov 30, 2021
8d868e8
Revert "Removes resize-observer-polyfill types only"
Nov 30, 2021
638be92
Patch resize-observer-polyfill types
Nov 30, 2021
a6098e6
Fix types
Nov 30, 2021
805d96f
update core docs
Nov 30, 2021
5f9f214
Merge branch 'ts-4-3-4' of github.com:tylersmalley/kibana into pr/104470
Nov 30, 2021
375d66f
More fixes
Nov 30, 2021
5f45a24
avoid excessive union type by using basic iteration
Nov 30, 2021
9235871
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Nov 30, 2021
6259e15
remove explicit inclusion of resize-observer-polyfill types
Nov 30, 2021
16fe24b
remove expect-error for missing declare
Nov 30, 2021
4a30b12
stop passing --verbose to tsc without --build
Nov 30, 2021
cf8fa9d
just re-export global ResizeObserver type in shim
Nov 30, 2021
25dda80
stop including resize-observer-polyfill types in secSol
Nov 30, 2021
a9b78e9
remove unnecessary type magic to reduce union explosion
Dec 1, 2021
49b2590
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Dec 1, 2021
1c76872
expect errors caused by router changes which don't seem mission criti…
Dec 1, 2021
bfc7d14
update test to the attributes actually change
Dec 1, 2021
dd5e777
update api_docs test snapshot
Dec 1, 2021
cc52b77
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Dec 1, 2021
f2ba37f
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Dec 1, 2021
f54f6b1
revert test update and skip with link to issue
Dec 1, 2021
44cb2b3
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Dec 1, 2021
dc24afd
fixes after merging main
Dec 1, 2021
3d87631
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Dec 1, 2021
c01bfab
Merge branch 'main' of github.com:elastic/kibana into pr/104470
Dec 1, 2021
2486436
ignore another union explosion
Dec 2, 2021
921bfc1
use ignore for expression that flip-flops
Dec 2, 2021
47068e2
Restore Headers definition
Dec 2, 2021
ae216ef
Update associated API docs
Dec 2, 2021
65adb76
Removed unnecessary change
Dec 2, 2021
cb0f129
Add link to Github issue
Dec 2, 2021
417d703
Bump globby/fast-glob to consolidate fast-glob
Dec 2, 2021
c82a4de
Update @kbn/pm dist
Dec 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"**/react-syntax-highlighter/**/highlight.js": "^10.4.1",
"**/request": "^2.88.2",
"**/trim": "1.0.1",
"**/typescript": "4.1.3",
"**/typescript": "4.3.5",
"**/underscore": "^1.13.1"
},
"engines": {
Expand Down Expand Up @@ -654,8 +654,8 @@
"@types/xml2js": "^0.4.5",
"@types/yauzl": "^2.9.1",
"@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"@yarnpkg/lockfile": "^1.1.0",
"abab": "^2.0.4",
"aggregate-error": "^3.1.0",
Expand Down Expand Up @@ -834,7 +834,7 @@
"ts-loader": "^7.0.5",
"ts-morph": "^9.1.0",
"tsd": "^0.13.1",
"typescript": "4.1.3",
"typescript": "4.3.5",
tylersmalley marked this conversation as resolved.
Show resolved Hide resolved
"unlazy-loader": "^0.1.3",
"url-loader": "^2.2.0",
"val-loader": "^1.1.1",
Expand Down
20 changes: 11 additions & 9 deletions packages/kbn-cli-dev-mode/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ export interface Log {
}

export class CliLog implements Log {
public toolingLog = new ToolingLog({
level: this.silent ? 'silent' : this.quiet ? 'error' : 'info',
writeTo: {
write: (msg) => {
this.write(msg);
public toolingLog: ToolingLog;

constructor(private readonly quiet: boolean, private readonly silent: boolean) {
this.toolingLog = new ToolingLog({
level: this.silent ? 'silent' : this.quiet ? 'error' : 'info',
writeTo: {
write: (msg) => {
this.write(msg);
},
},
},
});

constructor(private readonly quiet: boolean, private readonly silent: boolean) {}
});
}

good(label: string, ...args: any[]) {
if (this.quiet || this.silent) {
Expand Down
7 changes: 4 additions & 3 deletions packages/kbn-monaco/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import './register_globals';

export { monaco } from './monaco_imports';
export { XJsonLang } from './xjson';
export { PainlessLang, PainlessContext, PainlessAutocompleteField } from './painless';
export { PainlessLang } from './painless';
export type { PainlessContext, PainlessAutocompleteField } from './painless';
/* eslint-disable-next-line @kbn/eslint/module_migration */
import * as BarePluginApi from 'monaco-editor/esm/vs/editor/editor.api';

import { registerLanguage } from './helpers';
import {
export type {
LangModule as LangModuleType,
CompleteLangModule as CompleteLangModuleType,
} from './types';

export { BarePluginApi, registerLanguage, LangModuleType, CompleteLangModuleType };
export { BarePluginApi, registerLanguage };
2 changes: 1 addition & 1 deletion packages/kbn-monaco/src/painless/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export const PainlessLang: CompleteLangModuleType = {
getSyntaxErrors,
};

export { PainlessContext, PainlessAutocompleteField } from './types';
export type { PainlessContext, PainlessAutocompleteField } from './types';
2 changes: 1 addition & 1 deletion packages/kbn-monaco/src/painless/worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

export { PainlessWorker } from './painless_worker';

export { PainlessError } from './lib';
export type { PainlessError } from './lib';
2 changes: 1 addition & 1 deletion packages/kbn-monaco/src/painless/worker/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

export { getAutocompleteSuggestions } from './autocomplete';

export { PainlessError } from './error_listener';
export type { PainlessError } from './error_listener';

export { parseAndGetSyntaxErrors } from './parser';
6 changes: 4 additions & 2 deletions packages/kbn-optimizer/src/worker/bundle_refs_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ type ModuleFactory = (data: RequestData, callback: Callback<BundleRefModule>) =>
export class BundleRefsPlugin {
private readonly resolvedRefEntryCache = new Map<BundleRef, Promise<string>>();
private readonly resolvedRequestCache = new Map<string, Promise<string | undefined>>();
private readonly ignorePrefix = Path.resolve(this.bundle.contextDir) + Path.sep;
private readonly ignorePrefix;
private allowedBundleIds = new Set<string>();

constructor(private readonly bundle: Bundle, private readonly bundleRefs: BundleRefs) {}
constructor(private readonly bundle: Bundle, private readonly bundleRefs: BundleRefs) {
this.ignorePrefix = Path.resolve(this.bundle.contextDir) + Path.sep;
}

/**
* Called by webpack when the plugin is passed in the webpack config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ export type GetArgsType<T extends LifecycleEvent<any>> = T extends LifecycleEven
export class LifecycleEvent<Args extends readonly any[]> {
private readonly handlers: Array<(...args: Args) => Promise<void> | void> = [];

private readonly beforeSubj = this.options.singular
? new Rx.BehaviorSubject(undefined)
: new Rx.Subject<void>();
public readonly before$ = this.beforeSubj.asObservable();
private readonly beforeSubj: Rx.Subject<void> | Rx.BehaviorSubject<undefined>;
public readonly before$: Rx.Observable<void>;

private readonly afterSubj = this.options.singular
? new Rx.BehaviorSubject(undefined)
: new Rx.Subject<void>();
public readonly after$ = this.afterSubj.asObservable();
private readonly afterSubj: Rx.Subject<void> | Rx.BehaviorSubject<undefined>;
public readonly after$: Rx.Observable<void>;

constructor(
private readonly options: {
singular?: boolean;
} = {}
) {}
) {
this.beforeSubj = options.singular ? new Rx.BehaviorSubject(undefined) : new Rx.Subject<void>();
this.before$ = this.beforeSubj.asObservable();

this.afterSubj = options.singular ? new Rx.BehaviorSubject(undefined) : new Rx.Subject<void>();
this.after$ = this.afterSubj.asObservable();
}

public add(fn: (...args: Args) => Promise<void> | void) {
this.handlers.push(fn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ describe('without randomness', () => {
"kind": "N",
"value": undefined,
},
Notification {
"error": undefined,
"hasValue": true,
"kind": "N",
"value": undefined,
},
Notification {
"error": undefined,
"hasValue": false,
Expand All @@ -149,6 +155,12 @@ describe('without randomness', () => {
"kind": "N",
"value": undefined,
},
Notification {
"error": undefined,
"hasValue": true,
"kind": "N",
"value": undefined,
},
Notification {
"error": undefined,
"hasValue": false,
Expand Down Expand Up @@ -183,12 +195,6 @@ describe('without randomness', () => {
await expect(phase.after$.pipe(materialize(), toArray()).toPromise()).resolves
.toMatchInlineSnapshot(`
Array [
Notification {
"error": undefined,
"hasValue": true,
"kind": "N",
"value": undefined,
},
Notification {
"error": undefined,
"hasValue": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,23 @@ export class LifecyclePhase<Args extends readonly any[]> {

public triggered = false;

private readonly beforeSubj = new Rx.Subject<void>();
public readonly before$ = this.beforeSubj.asObservable();
private readonly beforeSubj: Rx.Subject<void> | Rx.BehaviorSubject<undefined>;
public readonly before$: Rx.Observable<void>;

private readonly afterSubj = this.options.singular
? new Rx.ReplaySubject<void>(1)
: new Rx.Subject<void>();
public readonly after$ = this.afterSubj.asObservable();
private readonly afterSubj: Rx.Subject<void> | Rx.BehaviorSubject<undefined>;
public readonly after$: Rx.Observable<void>;

constructor(
private readonly options: {
singular?: boolean;
} = {}
) {}
) {
this.beforeSubj = options.singular ? new Rx.BehaviorSubject(undefined) : new Rx.Subject<void>();
this.before$ = this.beforeSubj.asObservable();

this.afterSubj = options.singular ? new Rx.BehaviorSubject(undefined) : new Rx.Subject<void>();
this.after$ = this.afterSubj.asObservable();
}

public add(fn: (...args: Args) => Promise<void> | void) {
this.handlers.push(fn);
Expand Down
15 changes: 9 additions & 6 deletions packages/kbn-typed-react-router-config/src/create_router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import { deepExactRt } from '@kbn/io-ts-utils/target/deep_exact_rt';
import { mergeRt } from '@kbn/io-ts-utils/target/merge_rt';
import { Route, Router } from './types';

export function createRouter<TRoutes extends Route[]>(routes: TRoutes): Router<TRoutes> {
export function createRouter<TRoutes extends Route[]>(routes: TRoutes): Router<TRoutes>;

export function createRouter(routes: Route[]) {
const routesByReactRouterConfig = new Map<ReactRouterConfig, Route>();
const reactRouterConfigsByRoute = new Map<Route, ReactRouterConfig>();

Expand Down Expand Up @@ -157,10 +159,8 @@ export function createRouter<TRoutes extends Route[]>(routes: TRoutes): Router<T
});
};

return {
link: (path, ...args) => {
return link(path, ...args);
},
const router = {
link,
getParams: (...args: any[]) => {
const matches = matchRoutes(...args);
return matches.length
Expand All @@ -173,8 +173,11 @@ export function createRouter<TRoutes extends Route[]>(routes: TRoutes): Router<T
matchRoutes: (...args: any[]) => {
return matchRoutes(...args) as any;
},
getRoutePath: (route) => {
getRoutePath: (route: Route) => {
return reactRouterConfigsByRoute.get(route)!.path as string;
},
};

// prevent "Type instantation is excessively deep"
return router as any;
}
4 changes: 3 additions & 1 deletion packages/kbn-typed-react-router-config/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import { RequiredKeys, ValuesType } from 'utility-types';
// import { unconst } from '../unconst';
import { NormalizePath } from './utils';

export type PathsOf<TRoutes extends Route[]> = keyof MapRoutes<TRoutes> & string;
export type PathsOf<TRoutes extends Route[]> = [keyof MapRoutes<TRoutes>] extends [never]
? string
: keyof MapRoutes<TRoutes> & string;

export interface RouteMatch<TRoute extends Route = Route> {
route: TRoute;
Expand Down
6 changes: 4 additions & 2 deletions src/core/public/chrome/chrome_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ import { ChromeService } from './chrome_service';
import { getAppInfo } from '../application/utils';

class FakeApp implements App {
public title = `${this.id} App`;
public title: string;
public mount = () => () => {};
constructor(public id: string, public chromeless?: boolean) {}
constructor(public id: string, public chromeless?: boolean) {
this.title = `${this.id} App`;
}
}
const store = new Map();
const originalLocalStorage = window.localStorage;
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/chrome/chrome_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface ConstructorParams {
kibanaVersion: string;
}

interface StartDeps {
export interface StartDeps {
application: InternalApplicationStart;
docLinks: DocLinksStart;
http: HttpStart;
Expand Down
4 changes: 2 additions & 2 deletions src/core/public/core_app/core_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ import {
import { renderApp as renderStatusApp } from './status';
import { DocLinksStart } from '../doc_links';

interface SetupDeps {
export interface SetupDeps {
application: InternalApplicationSetup;
http: HttpSetup;
injectedMetadata: InjectedMetadataSetup;
notifications: NotificationsSetup;
}

interface StartDeps {
export interface StartDeps {
application: InternalApplicationStart;
docLinks: DocLinksStart;
http: HttpStart;
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/doc_links/doc_links_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { deepFreeze } from '@kbn/std';
import { InjectedMetadataSetup } from '../injected_metadata';

interface StartDeps {
export interface StartDeps {
injectedMetadata: InjectedMetadataSetup;
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/public/fatal_errors/fatal_errors_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { InjectedMetadataSetup } from '../injected_metadata';
import { FatalErrorsScreen } from './fatal_errors_screen';
import { FatalErrorInfo, getErrorInfo } from './get_error_info';

interface Deps {
export interface Deps {
i18n: I18nStart;
injectedMetadata: InjectedMetadataSetup;
}
Expand Down
10 changes: 6 additions & 4 deletions src/core/public/injected_metadata/injected_metadata_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ export interface InjectedMetadataParams {
* @internal
*/
export class InjectedMetadataService {
private state = deepFreeze(
this.params.injectedMetadata
) as InjectedMetadataParams['injectedMetadata'];
private state: InjectedMetadataParams['injectedMetadata'];

constructor(private readonly params: InjectedMetadataParams) {}
constructor(private readonly params: InjectedMetadataParams) {
this.state = deepFreeze(
this.params.injectedMetadata
) as InjectedMetadataParams['injectedMetadata'];
}

public start(): InjectedMetadataStart {
return this.setup();
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/integrations/integrations_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { CoreService } from '../../types';
import { MomentService } from './moment';
import { StylesService } from './styles';

interface Deps {
export interface Deps {
uiSettings: IUiSettingsClient;
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/public/notifications/notifications_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { ToastsService, ToastsSetup, ToastsStart } from './toasts';
import { IUiSettingsClient } from '../ui_settings';
import { OverlayStart } from '../overlays';

interface SetupDeps {
export interface SetupDeps {
uiSettings: IUiSettingsClient;
}

interface StartDeps {
export interface StartDeps {
i18n: I18nStart;
overlays: OverlayStart;
targetDomElement: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/rendering/rendering_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { InternalApplicationStart } from '../application';
import { OverlayStart } from '../overlays';
import { AppWrapper } from './app_containers';

interface StartDeps {
export interface StartDeps {
application: InternalApplicationStart;
chrome: InternalChromeStart;
overlays: OverlayStart;
Expand Down
2 changes: 1 addition & 1 deletion src/core/public/ui_settings/ui_settings_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { UiSettingsApi } from './ui_settings_api';
import { UiSettingsClient } from './ui_settings_client';
import { IUiSettingsClient } from './types';

interface UiSettingsServiceDeps {
export interface UiSettingsServiceDeps {
http: HttpSetup;
injectedMetadata: InjectedMetadataSetup;
}
Expand Down
1 change: 0 additions & 1 deletion src/core/server/context/container/context.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export type ContextContainerMock = jest.Mocked<IContextContainer>;

const createContextMock = (mockContext: any = {}) => {
const contextMock: ContextContainerMock = {
// @ts-expect-error since ContextContainerMock cannot infer ContextName and fallsback to never
registerContext: jest.fn(),
createHandler: jest.fn(),
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/context/context_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { CoreContext } from '../core_context';

type PrebootDeps = SetupDeps;

interface SetupDeps {
export interface SetupDeps {
pluginDependencies: ReadonlyMap<PluginOpaqueId, PluginOpaqueId[]>;
}

Expand Down
Loading