mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make overriding injectable with a mock supported
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
d07d9f9fd2
commit
0c0dfe5966
7
types/ogre-tools-injectable.d.ts
vendored
7
types/ogre-tools-injectable.d.ts
vendored
@ -38,7 +38,12 @@ declare module "@ogre-tools/injectable" {
|
|||||||
|
|
||||||
override: <TInjectable extends IInjectable<TInstance, any>, TInstance>(
|
override: <TInjectable extends IInjectable<TInstance, any>, TInstance>(
|
||||||
injectable: TInjectable,
|
injectable: TInjectable,
|
||||||
overrider: ReturnType<TInjectable["instantiate"]>,
|
overrider:
|
||||||
|
| ReturnType<TInjectable["instantiate"]>
|
||||||
|
| jest.MockInstance<
|
||||||
|
ReturnType<TInjectable["instantiate"]>,
|
||||||
|
ReturnType<TInjectable["getDependencies"]>
|
||||||
|
>,
|
||||||
) => void;
|
) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user