UNPKG
@discostudioteam/react-code-blocks
Version:
latest (0.1.1-0)
0.1.1-0
0.1.0-0
0.0.2-0
0.0.1-0
Modified rajinwonderland's modification of Atlaskit's Code Block!
@discostudioteam/react-code-blocks
/
dist
/
hooks
/
with-defaults.d.ts
4 lines
(3 loc)
•
223 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;