Type 'IArguments' is not an array type
The console.log call is incorrect just pass ahead the paramater received:
@Injectable()
export class Logger {
log(...args: any[]) {
console.log(args);
}
}
Or to print as a real console:
@Injectable()
export class Logger {
log(...args: any[]) {
console.log.apply(console, args);
}
}
this worked for me:
console.log(...Array.from(arguments));