UNPKG

@douyinfe/semi-ui

Version:

A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.

11 lines 454 B
import PropTypes from 'prop-types'; const PlainTimeShape = [PropTypes.string, PropTypes.number, PropTypes.instanceOf(Date)]; /** * Can be * - 12:00:12 * - \[12:00:12] * - \[12:00:12, 12:21:12] * - \[[12:00:12, 12:21:12], [12:11:12, 12:32:12]] */ const TimeShape = PropTypes.oneOfType([...PlainTimeShape, PropTypes.arrayOf(PropTypes.string), PropTypes.arrayOf(PropTypes.number), PropTypes.arrayOf(PropTypes.instanceOf(Date))]); export { TimeShape };