Creates a new Err instance representing a failed operation.
The type that would have been returned if successful
The error message describing what went wrong
A Result containing the error message
const result = err<number>("Invalid number");// result = Err("Invalid number") Copy
const result = err<number>("Invalid number");// result = Err("Invalid number")
Creates a new Err instance representing a failed operation.