This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(firstName, lastName, address) { | |
let self = this; | |
this.firstName = firstName; | |
this.lastName = lastName; | |
this.address = address; | |
/** | |
* @return {string} | |
*/ | |
this.getInfo = function() { | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param firstName | |
* @param lastName | |
* @param address | |
* @constructor | |
*/ | |
function Person(firstName, lastName, address) { | |
let self = this; | |
this.firstName = firstName; | |
this.lastName = lastName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Parent: React.FC = () => { | |
return <ChildWrapper cat="mew" /> | |
} | |
type ChildProps = { | |
cat: string | |
} | |
const Child: React.FC<ChildProps & { global: string }> = ({ cat }) => { | |
return <span>{cat}</span> | |
} |