react-compinators
Preparing search index...
modOptionalProp
Function modOptionalProp
modOptionalProp
<
Prop
extends
string
>
(
propName
:
Prop
,
)
:
<
Value
>
(
modify
:
(
value
?:
Value
)
=>
Value
,
maybeNameWrapper
?:
string
,
)
=>
<
Props
extends
Partial
<
Record
<
Prop
,
Value
>
>
>
(
Base
:
FC
<
Props
>
,
)
=>
FC
<
Props
>
Just like
modProp
but for
optional
props.
Type Parameters
Prop
extends
string
Parameters
propName
:
Prop
Returns
<
Value
>
(
modify
:
(
value
?:
Value
)
=>
Value
,
maybeNameWrapper
?:
string
,
)
=>
<
Props
extends
Partial
<
Record
<
Prop
,
Value
>
>
>
(
Base
:
FC
<
Props
>
,
)
=>
FC
<
Props
>
Settings
Member Visibility
Internal
Theme
OS
Light
Dark
react-compinators
Loading...
Just like
modProp
but for optional props.