declare var print ; declare var io ; module JS { export class Console { public static log ( ... params ) { print ( ... params ) ; } public static warn ( ... params ) { print ( ... params ) ; } public static error ( ... params ) { io . stderr . write ( tostring ( params [ 0 ] ) ) ; } } } declare var console ; console = JS . Console ;