19 lines
470 B
JavaScript
19 lines
470 B
JavaScript
|
//// [parserClass2.ts]
|
||
|
|
||
|
|
||
|
export class LoggerAdapter implements ILogger {
|
||
|
constructor (public logger: ILogger) {
|
||
|
this._information = this.logger.information();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [parserClass2.js]
|
||
|
var LoggerAdapter = (function () {
|
||
|
function LoggerAdapter(logger) {
|
||
|
this.logger = logger;
|
||
|
this._information = this.logger.information();
|
||
|
}
|
||
|
return LoggerAdapter;
|
||
|
})();
|
||
|
exports.LoggerAdapter = LoggerAdapter;
|