// @allowJs: true // @checkJs: true // @emitDeclarationOnly: true // @declaration: true // @strict: true // @esModuleInterop: true // @jsx: react // @noImplicitAny: false // @filename: 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;