This file contains hidden or 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
import DocumentNested, { DocumentNested } from './DocumentNested'; | |
interface Document extends DocumentNested { | |
name: string, | |
} | |
interface ParentComponentProps { | |
document: Document, | |
} |
This file contains hidden or 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 assert = require('assert'); | |
/** | |
* Calculates the circle's area for the given radius | |
* | |
* @param {number} radius | |
* @returns {number} cirle's area | |
*/ | |
function circleArea(radius) { | |
if (typeof radius === 'number') { |
OlderNewer