retuple 1.0.0-next.18 → 1.0.0-next.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1275,7 +1275,7 @@ interface Retuple<T, E> extends RetupleArray<T | E | undefined>, ResultLike<T, E
1275
1275
  * );
1276
1276
  * ```
1277
1277
  */
1278
- $mapOr<U, V = U>(this: Result<T, E>, def: U, f: (val: T) => V): Result<U | V, E>;
1278
+ $mapOr<U, V = U>(this: Result<T, E>, def: U, f: (val: T) => V): Result<U | V, never>;
1279
1279
  /**
1280
1280
  * Returns `Ok` containing the return value of the map function when this
1281
1281
  * result is `Ok`.
@@ -1309,7 +1309,7 @@ interface Retuple<T, E> extends RetupleArray<T | E | undefined>, ResultLike<T, E
1309
1309
  * );
1310
1310
  * ```
1311
1311
  */
1312
- $mapOrElse<U, V = U>(this: Result<T, E>, def: (err: E) => U, f: (val: T) => V): Result<U | V, E>;
1312
+ $mapOrElse<U, V = U>(this: Result<T, E>, def: (err: E) => U, f: (val: T) => V): Result<U | V, never>;
1313
1313
  /**
1314
1314
  * Returns the or result, when this result is `Err`.
1315
1315
  *
package/dist/index.d.ts CHANGED
@@ -1275,7 +1275,7 @@ interface Retuple<T, E> extends RetupleArray<T | E | undefined>, ResultLike<T, E
1275
1275
  * );
1276
1276
  * ```
1277
1277
  */
1278
- $mapOr<U, V = U>(this: Result<T, E>, def: U, f: (val: T) => V): Result<U | V, E>;
1278
+ $mapOr<U, V = U>(this: Result<T, E>, def: U, f: (val: T) => V): Result<U | V, never>;
1279
1279
  /**
1280
1280
  * Returns `Ok` containing the return value of the map function when this
1281
1281
  * result is `Ok`.
@@ -1309,7 +1309,7 @@ interface Retuple<T, E> extends RetupleArray<T | E | undefined>, ResultLike<T, E
1309
1309
  * );
1310
1310
  * ```
1311
1311
  */
1312
- $mapOrElse<U, V = U>(this: Result<T, E>, def: (err: E) => U, f: (val: T) => V): Result<U | V, E>;
1312
+ $mapOrElse<U, V = U>(this: Result<T, E>, def: (err: E) => U, f: (val: T) => V): Result<U | V, never>;
1313
1313
  /**
1314
1314
  * Returns the or result, when this result is `Err`.
1315
1315
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retuple",
3
- "version": "1.0.0-next.18",
3
+ "version": "1.0.0-next.19",
4
4
  "scripts": {
5
5
  "test": "vitest",
6
6
  "lint": "eslint . --ext .ts -c eslint.config.mjs --fix",