I'm trying to convert some js to ts and got error in canSave method .My JavaScript code is,
scope.canSave = function () {
if (scope.category.orderNumber != scope.list) {
!_this.orderNumberAlreadyExist(scope.list, scope.category);
}
};
and when I'm trying to convert that into TypeScript . I was getting Type '() => void' is not assignable to type '() => boolean' and Operator '!=' cannot be applied to types 'number' and 'Category[]' in command prompt. What was my mistake and what can i do now, can some one clarify me.
processResource"Copies resources from their source to their target directory, potentially processing them." How should this command convert JavaScript to TypeScript?Category? And why are you converting the js to ts to begin with? (as you wrote in the comment to an answer that: "i don't want to change my JavaScript code", so what's the point in having the ts code?)