Otrzymuję błąd z następującego kodu maszynopis:Set window.location z maszynopis
///<reference path='../../../Shared/typescript/jquery.d.ts' />
///<reference path='../../../Shared/typescript/jqueryStatic.d.ts' />
function accessControls(action: Action) {
$('#logoutLink')
.click(function() {
var $link = $(this);
window.location = $link.attr('data-href');
});
}
Dostaję podkreślone czerwoną błąd za:
$link.attr('data-href');
Komunikat mówi:
Cannot convert 'string' to 'Location': Type 'String' is missing property 'reload' from type 'Location'
Czy ktoś wie, co to oznacza?