//// [jsxDeclarationsWithEsModuleInteropNoCrash.jsx]
///
import PropTypes from 'prop-types';
import React from 'react';
const propTypes = {
bar: PropTypes.bool,
};
const defaultProps = {
bar: false,
};
function Foo({ bar }) {
return
{bar}
;
}
Foo.propTypes = propTypes;
Foo.defaultProps = defaultProps;
export default Foo;
//// [jsxDeclarationsWithEsModuleInteropNoCrash.d.ts]
///
export default Foo;
declare function Foo({ bar }: {
bar: any;
}): JSX.Element;
declare namespace Foo {
export { propTypes };
export { defaultProps };
}
declare namespace propTypes {
export const bar: PropTypes.Requireable;
}
declare namespace defaultProps {
const bar_1: boolean;
export { bar_1 as bar };
}
import PropTypes from "prop-types";