Closed
Description
this example works great
function test(value: string[]| string){
var result: string;
if (value instanceof Array){
result = value.join('');
}
}
but this
interface IFoo {
value: string[] | string;
}
function bar(options: IFoo) {
var result: string;
if (options.value instanceof Array) {
result = options.value.join('')
}
}
property join does not exists on type string[] | string
i think i'ts compiler mistake