Pacote
Preparing search index...
@pacote/react-with-props
withDefaultProps
Function withDefaultProps
withDefaultProps
<
InjectedProps
extends
Record
<
string
,
unknown
>
,
ComponentProps
extends
Record
<
string
,
unknown
>
,
Component
extends
InnerComponent
<
ComponentProps
>
,
EnhancedProps
=
Enhanced
<
InjectedProps
,
InnerProps
<
Component
>
>
&
Partial
<
InjectedProps
,
>
,
>
(
injectedProps
:
InjectedProps
,
BaseComponent
:
Component
,
)
:
ComponentType
<
EnhancedProps
>
Type Parameters
InjectedProps
extends
Record
<
string
,
unknown
>
ComponentProps
extends
Record
<
string
,
unknown
>
Component
extends
InnerComponent
<
ComponentProps
>
EnhancedProps
=
Enhanced
<
InjectedProps
,
InnerProps
<
Component
>
>
&
Partial
<
InjectedProps
>
Parameters
injectedProps
:
InjectedProps
BaseComponent
:
Component
Returns
ComponentType
<
EnhancedProps
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Pacote
Loading...