Skip to content

Instantly share code, notes, and snippets.

View skv-headless's full-sized avatar
😜
working

Eugene Sokovikov skv-headless

😜
working
  • HeroCoders
  • Remote
View GitHub Profile
import DocumentNested, { DocumentNested } from './DocumentNested';
interface Document extends DocumentNested {
name: string,
}
interface ParentComponentProps {
document: Document,
}
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') {