chore: export slider、range and handle props interface
fix: lint
fix: lint
Showing 3 of 3 files from the diff.
Newly tracked file
src/createSliderWithTooltip.tsx
changed.
Newly tracked file
src/index.tsx
changed.
Newly tracked file
src/common/createSlider.tsx
changed.
@@ -21,6 +21,7 @@
Loading
21 | 21 | export default function createSliderWithTooltip<Props extends GenericSliderProps>( |
|
22 | 22 | Component: React.ComponentClass<Props>, |
|
23 | 23 | ) { |
|
24 | + | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
|
24 | 25 | return class ComponentWrapper extends React.Component< |
|
25 | 26 | ComponentWrapperProps & React.ComponentProps<typeof Component>, |
|
26 | 27 | ComponentWrapperState |
@@ -1,6 +1,6 @@
Loading
1 | 1 | import Slider, { SliderProps } from './Slider'; |
|
2 | - | import Range from './Range'; |
|
3 | - | import Handle from './Handle'; |
|
2 | + | import Range, { RangeProps } from './Range'; |
|
3 | + | import Handle, { HandleProps } from './Handle'; |
|
4 | 4 | import createSliderWithTooltip from './createSliderWithTooltip'; |
|
5 | 5 | import SliderTooltip from './common/SliderTooltip'; |
|
6 | 6 |
@@ -16,4 +16,12 @@
Loading
16 | 16 | InternalSlider.Handle = Handle; |
|
17 | 17 | InternalSlider.createSliderWithTooltip = createSliderWithTooltip; |
|
18 | 18 | export default InternalSlider; |
|
19 | - | export { Range, Handle, createSliderWithTooltip, SliderTooltip }; |
|
19 | + | export { |
|
20 | + | SliderProps, |
|
21 | + | Range, |
|
22 | + | RangeProps, |
|
23 | + | Handle, |
|
24 | + | HandleProps, |
|
25 | + | createSliderWithTooltip, |
|
26 | + | SliderTooltip, |
|
27 | + | }; |
@@ -16,6 +16,7 @@
Loading
16 | 16 | Props extends GenericSliderProps, |
|
17 | 17 | State extends GenericSliderState |
|
18 | 18 | >(Component: GenericSlider<Props, State>): React.ComponentClass<Props, State> { |
|
19 | + | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
|
19 | 20 | return class ComponentEnhancer extends Component { |
|
20 | 21 | static displayName = `ComponentEnhancer(${Component.displayName})`; |
|
21 | 22 |
Files | Coverage |
---|---|
src | 88.20% |
Project Totals (11 files) | 88.20% |
393020416
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.