namespace DrawAndRenderFunctions { class Shape { } declare const TriangleType ; class Triangle extends Shape { [ TriangleType ] : void ; } declare function drawShape ( shape ) ; declare function drawTriangle ( triangle ) ; function render ( triangle , drawFunc ) { drawFunc ( triangle ) ; } }