@tsdotnet/type - v1.2.7
Preparing search index...
type
hasMethod
Function hasMethod
hasMethod
<
T
=
unknown
,
K
extends
PropertyKey
=
keyof
T
>
(
instance
:
unknown
,
name
:
K
,
)
:
instance
is
{
[
P
in
PropertyKey
]
:
(
...
params
:
any
[]
)
=>
unknown
}
&
T
Tests to see if an object has a function of the specified name.
Type Parameters
T
=
unknown
K
extends
PropertyKey
=
keyof
T
Parameters
instance
:
unknown
name
:
K
Returns
instance
is
{
[
P
in
PropertyKey
]
:
(
...
params
:
any
[]
)
=>
unknown
}
&
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@tsdotnet/type - v1.2.7
Loading...
Tests to see if an object has a function of the specified name.