From f0acb818bc1f0bb6357c88354ef763ae2af0a500 Mon Sep 17 00:00:00 2001 From: Neil Kistner Date: Thu, 3 Jun 2021 19:37:11 -0500 Subject: [PATCH] fix(legends): update proptypes to avoid generated type error --- packages/legends/src/props.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/legends/src/props.ts b/packages/legends/src/props.ts index 105a68c98..cef3bf489 100644 --- a/packages/legends/src/props.ts +++ b/packages/legends/src/props.ts @@ -15,14 +15,7 @@ import PropTypes from 'prop-types' * ``` */ export const LegendPropShape = { - data: PropTypes.arrayOf( - PropTypes.shape({ - id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, - color: PropTypes.string, - fill: PropTypes.string, - }) - ), + data: PropTypes.arrayOf(PropTypes.object), // position & layout anchor: PropTypes.oneOf([