mirror of
https://github.com/apache/superset.git
synced 2026-05-31 21:29:19 +00:00
feat(build): auto-rebuild/check TypeScript types for packages/plugins in webpack (#35240)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
b6f6b75348
commit
608e3baf43
@@ -16,7 +16,16 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
export { savedMetricType } from './types';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
// For backward compatibility with PropTypes usage
|
||||
export { savedMetricType as default } from './types';
|
||||
export type { savedMetricType } from './types';
|
||||
|
||||
// PropTypes definition for JavaScript files
|
||||
const savedMetricTypePropTypes = PropTypes.shape({
|
||||
metric_name: PropTypes.string.isRequired,
|
||||
verbose_name: PropTypes.string,
|
||||
expression: PropTypes.string,
|
||||
});
|
||||
|
||||
// Export as default for backward compatibility with JavaScript files
|
||||
export default savedMetricTypePropTypes;
|
||||
|
||||
Reference in New Issue
Block a user