function fooA ( ) { console . log ( "fooA" ) ; } namespace fooA { export var barA = ( ) => { console . log ( "fooA.barA" ) ; } ; } fooA ( ) ; fooA . barA ( ) ; function fooB ( ) { console . log ( "fooB" ) ; } fooB . barB = ( ) => { console . log ( "fooB.barB" ) ; } ; fooB ( ) ; fooB . barB ( ) ; const fooC = ( ) => { console . log ( "fooC" ) ; } ; fooC . barC = ( ) => { console . log ( "fooC.barC" ) ; } ; fooC ( ) ; fooC . barC ( ) ; let fooD = ( ) => { console . log ( "fooD" ) ; } ;