namespace UnitTypeImplementation { declare const UnitType ; class Unit { [ UnitType ] : void ; static readonly value : Unit = new Unit ( ) ; private constructor ( ) { } ; } function greet ( ) { console . log ( "Hello world!" ) ; return Unit . value ; } }