Skip to content

Commit 81e43aa

Browse files
committed
feat: 🎸 add universal component prop type interface
1 parent c4a0b90 commit 81e43aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import render from './render';
22
import createEnhancer from './createEnhancer';
33

4+
export interface UniversalProps<Data> {
5+
children?: ((data: Data) => React.ReactNode) | React.ReactNode;
6+
render?: (data: Data) => React.ReactNode;
7+
comp?: React.ComponentType<Data & any>;
8+
component?: React.ComponentType<Data & any>;
9+
}
10+
411
export {
512
render,
613
createEnhancer,

0 commit comments

Comments
 (0)