@witchcraft/spellcraft
Github
Issues
npm
Preparing search index...
types/manager
CanHook
Type Alias CanHook<TBase, T, TKey, TVal, TError>
CanHook
:
(
obj
:
TBase
,
key
:
TKey
,
val
:
TVal
)
=>
TError
|
true
Type Parameters
TBase
T
extends
Record
<
string
,
{
val
:
any
}
>
TKey
extends
keyof
T
=
keyof
T
TVal
extends
T
[
TKey
]
[
"val"
]
=
T
[
TKey
]
[
"val"
]
TError
extends
Error
=
Error
Type Declaration
(
obj
:
TBase
,
key
:
TKey
,
val
:
TVal
)
:
TError
|
true
Parameters
obj
:
TBase
key
:
TKey
val
:
TVal
Returns
TError
|
true
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/spellcraft
Loading...