1 |
|
2 | import { oneOfType, arrayOf, string, number, shape, func } from 'prop-types';
|
3 |
|
4 | var step = oneOfType([shape({
|
5 | minTime: number,
|
6 | formatAs: string.isRequired
|
7 | }), shape({
|
8 | test: func,
|
9 | formatAs: string.isRequired
|
10 | }), shape({
|
11 | minTime: number,
|
12 | format: func.isRequired
|
13 | }), shape({
|
14 | test: func,
|
15 | format: func.isRequired
|
16 | })]);
|
17 |
|
18 | export var style = oneOfType([
|
19 |
|
20 |
|
21 | string, shape({
|
22 | steps: arrayOf(step).isRequired,
|
23 | labels: oneOfType([string, arrayOf(string)]).isRequired
|
24 | })]);
|
25 |
|
\ | No newline at end of file |