UNPKG
mock-fn
Version:
latest (1.1.0)
1.1.0
1.0.0
Simple mockFunction test utility
github.com/viktor-podzigun/mock-fn
viktor-podzigun/mock-fn
mock-fn
/
src
/
mockFunction.d.mts
10 lines
(7 loc)
•
176 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
declare
function
mockFunction
<
T
extends
(
...args
:
any
[
]
)
=
>
any
>
(
impl
?
:
T
)
:
{
(
...args
:
Parameters
<
T
>
)
:
ReturnType
<
T
>
; times
:
number;
}
; export default mockFunction;