Documentation
Preparing search index...
ts_lib/lib/utils
hasOptionalPropertyT
Function hasOptionalPropertyT
hasOptionalPropertyT
<
Obj
extends
object
,
T
>
(
obj
:
Obj
,
property
:
string
,
isT
:
(
t
:
unknown
)
=>
t
is
T
,
)
:
boolean
Check if an object has an optional property and if it has it, if the type is right
Type Parameters
Obj
extends
object
T
Parameters
obj
:
Obj
property
:
string
isT
:
(
t
:
unknown
)
=>
t
is
T
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Check if an object has an optional property and if it has it, if the type is right