Skip to content

Commit d5fd99a

Browse files
committed
feat: export Props types
1 parent b0a7d8f commit d5fd99a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/Bar/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
ChildProps,
66
Coordinate,
77
ExpandInteractiveArea,
8+
Omit,
89
} from '../types';
910
import { withResizerContext } from '../context';
1011
import { StyledBar, StyledInteractiveArea } from './Bar.styled';
@@ -171,4 +172,6 @@ class BarComponent extends React.PureComponent<Props> {
171172
}
172173
}
173174

175+
export type BarProps = Omit<Props, 'context'>;
176+
174177
export const Bar = withResizerContext(BarComponent);

src/Container/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ class Container extends React.PureComponent<Props> {
164164
}
165165
}
166166

167-
export { Container, Resizer };
167+
export { Container, Resizer, Props as ContainerProps };

src/Section/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,6 @@ class SectionComponent extends React.PureComponent<Props> {
114114
}
115115
}
116116

117+
export type SectionProps = Pick<Props, 'context'>;
118+
117119
export const Section = withResizerContext(SectionComponent);

0 commit comments

Comments
 (0)