Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
@Optional()
@Inject(LoggerConfig)
protected config: Config
) {
if (!config) {
this.config = defaultConfig
}
}
protected logs: string[] = [] // capture logs for testing
constructor(
@Optional()
@Inject(MultiplyCounterConfig)
private config: MultiplyCounterConfig,
public logger: Logger
) {
super(logger)
this.config = config || defaultConfig
}
onIncrement() {