import { TimeReporter } from '../shared/timeReporter' ; import { EOL } from 'os' ; function printer ( s ) { console . log ( "The time is: " + s + EOL ) ; } let timeReporter = new TimeReporter ( printer ) ; timeReporter . start ( ) ;