Creates a new Err instance representing a failed operation.
The type that would have been returned if successful
One or more structured issues describing what went wrong and where.
const result = JsonDecoder.err<number>([{ message: "Invalid number", path: ["age"] }]);// result.issues === [{ message: "Invalid number", path: ["age"] }] Copy
const result = JsonDecoder.err<number>([{ message: "Invalid number", path: ["age"] }]);// result.issues === [{ message: "Invalid number", path: ["age"] }]
Creates a new Err instance representing a failed operation.