Ich erhalte eine Fehlermeldung mit folgendem Typoskript Code:Set window.location mit Typoskript
///<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');
});
}
ich einen unterstrichen rot Fehler für die folgenden bin immer:
$link.attr('data-href');
Die Meldung sagt:
Cannot convert 'string' to 'Location': Type 'String' is missing property 'reload' from type 'Location'
Weiß jemand, was das bedeutet?