PokéRogue
GitHub
Switch to Main
Preparing search index...
test/utils/test-utils
Mock
Type Alias Mock<T>
Mock
:
MockInstance
<
T
>
&
(
T
extends
Constructable
?
T
extends
Procedure
?
{
(
...
args
:
Parameters
<
T
>
)
:
ReturnType
<
T
>
;
new
(
...
args
:
ConstructorParameters
<
T
>
)
:
InstanceType
<
T
>
;
}
:
new
(
...
args
:
ConstructorParameters
<
T
>
)
=>
InstanceType
<
T
>
:
{
(
...
args
:
MockParameters
<
T
>
)
:
MockReturnType
<
T
>
;
new
(
...
args
:
MockParameters
<
T
>
)
:
MockReturnType
<
T
>
;
}
)
&
{
[
P
in
keyof
T
]
:
T
[
P
]
}
Type Parameters
T
extends
Procedure
|
Constructable
=
Procedure
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
GitHub
Switch to Main
PokéRogue
Loading...