UNPKG
@geezee/react-ui
Version:
latest (0.0.14)
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Modern and minimalist React UI library.
geezee-it.de
GeeZee-iT/react-ui
@geezee/react-ui
/
dist
/
utils
/
with-defaults.d.ts
4 lines
(3 loc)
•
220 B
TypeScript
View Raw
1
2
3
4
import
React
from
'react'
;
declare
const
withDefaults
: <P,
DP
>
(
component
:
React
.
ComponentType
<P>,
defaultProps
: DP
) =>
React
.
ComponentType
<
Partial
<
DP
> &
Pick
<P,
Exclude
<keyof P, keyof
DP
>>>;
export
default
withDefaults;