@@ -34,7 +34,7 @@ export function mapOk<T, U, E>(
34
34
35
35
/**
36
36
* Maps the error of a Result, while leaving a successful Result unchanged.
37
- * You can provide a custom mapper, or use @link ` mapErrToError` or ` mapErrToString` .
37
+ * You can provide a custom mapper, or use { @link mapErrToError} or { @link mapErrToString} .
38
38
* @param result The Result to map.
39
39
* @param fn The mapping function for the error.
40
40
* @returns A new Result with the mapped error or the original value.
@@ -70,7 +70,7 @@ export function mapErr<T, E, F>(
70
70
//
71
71
72
72
/**
73
- * Maps an error to an Error object. To be used with @link ` mapErr` .
73
+ * Maps an error to an Error object. To be used with { @link mapErr} .
74
74
* If the error is already an Error, it returns it unchanged.
75
75
* If the error is a string, it creates a new Error with that string.
76
76
* If the error is an object, it converts it to a JSON string and creates a new Error.
@@ -103,7 +103,7 @@ export function mapErrToError<E>(error: E): Error {
103
103
}
104
104
105
105
/**
106
- * Maps an error to a string representation. To be used with @link ` mapErr` .
106
+ * Maps an error to a string representation. To be used with { @link mapErr} .
107
107
* @param error The error to map.
108
108
* @returns A string representation of the error.
109
109
* @example
0 commit comments