[new-platform] Add legacy property to NavLinks registered by… (#41301)

This commit is contained in:
Josh Dover 2019-07-29 17:51:45 -05:00 committed by GitHub
parent c91e94510e
commit eb03fd8c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 246 additions and 170 deletions

7
typings/index.d.ts vendored
View file

@ -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;