Is there a way how you can get immutability in typescript of function parameters? (the same from java with final)
Example:
function add(a: number, b: number): number {
a = 5; // possible
return a + b;
}
And what I am searching for, example:
function add(a: ???, b: ???): number {
a = 5; // not possible because it would be immutable
return a + b;
}
I am searching this because of clearity if a function can modify my parameters.