sto ottenendo un errore con il seguente codice dattiloscritto:Set window.location con dattiloscritto
///<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');
});
}
sto ottenendo un errore rosso sottolineato quanto segue:
$link.attr('data-href');
Il messaggio dice:
Cannot convert 'string' to 'Location': Type 'String' is missing property 'reload' from type 'Location'
Qualcuno sa cosa significa?