UNPKG

react-infinite-table

Version:
18 lines (14 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; function _default(props) { var rie = 'Invariant Violation: '; if (!props.height) { throw new Error(rie + 'height must be provided.'); } if (!(typeof props.rowHeight === 'number' || typeof props.rowHeight === 'function')) { throw new Error(rie + 'You must provide either a number or a function as the rowHeight.'); } }