Regarding the following code I have two questions:
When I compile it I get the warning/error "Cannot convert 'any[]' to 'Array'". Is that because
public songPaths: Array = []isn't legit and I should just go withpublic songPaths: any = []?Is
Objectan appropriate default value forpublic song:Object = new Audio()?
Example:
'use strict';
class Boombox{
constructor(public track: number, public codec: string, public song:Object = new Audio(), public currentTime: number = 0, public playing:bool = false, public titles: any = [], public songPaths: Array = []){
}
}