intellibrix v1.0.0
Preparing search index...
intellibrix
testing
mockTool
Function mockTool
mockTool
<
In
=
any
,
Out
=
any
>
(
name
:
string
,
impl
:
(
input
:
In
)
=>
Out
|
Promise
<
Out
>
,
opts
?:
{
description
?:
string
}
,
)
:
{
description
:
string
;
execute
:
(
input
:
In
)
=>
Promise
<
Out
>
;
input
:
any
;
name
:
string
;
}
Convenience helper for defining a simple mock tool in tests.
Type Parameters
In
=
any
Out
=
any
Parameters
name
:
string
impl
:
(
input
:
In
)
=>
Out
|
Promise
<
Out
>
Optional
opts
:
{
description
?:
string
}
Returns
{
description
:
string
;
execute
:
(
input
:
In
)
=>
Promise
<
Out
>
;
input
:
any
;
name
:
string
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
intellibrix v1.0.0
Loading...
Convenience helper for defining a simple mock tool in tests.