Dependency Injection prototype

This commit is contained in:
Daniel Imms
2019-07-13 19:50:16 -07:00
parent c078f3db48
commit 21fbe25858
10 changed files with 160 additions and 15 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ export class CoreService implements ICoreService {
constructor(
// TODO: Move this into a service
private readonly _scrollToBottom: () => void,
private readonly _bufferService: IBufferService,
private readonly _optionsService: IOptionsService
@IBufferService private readonly _bufferService: IBufferService,
@IOptionsService private readonly _optionsService: IOptionsService
) {
this.decPrivateModes = clone(DEFAULT_DEC_PRIVATE_MODES);
}