mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[new-platform] Add legacy
property to NavLinks registered by… (#41301)
This commit is contained in:
parent
c91e94510e
commit
eb03fd8c5f
29 changed files with 246 additions and 170 deletions
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
|
@ -30,3 +30,10 @@ type MethodKeysOf<T> = {
|
|||
type PublicMethodsOf<T> = Pick<T, MethodKeysOf<T>>;
|
||||
|
||||
type MockedKeys<T> = { [P in keyof T]: jest.Mocked<T[P]> };
|
||||
|
||||
type DeeplyMockedKeys<T> = {
|
||||
[P in keyof T]: T[P] extends (...args: any[]) => any
|
||||
? jest.MockInstance<ReturnType<T[P]>, Parameters<T[P]>>
|
||||
: DeeplyMockedKeys<T[P]>;
|
||||
} &
|
||||
T;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue