@jscutlery/operators 0.2.1 → 0.2.2
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/CHANGELOG.md +9 -0
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/lib/suspensify.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.2](https://github.com/jscutlery/devkit/compare/operators-0.2.1...operators-0.2.2) (2023-01-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **operators:** 🏷️ fix typing errors ([91c084c](https://github.com/jscutlery/devkit/commit/91c084c29c6ad760376c10bc17004a2bfcd3a306))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
5
14
|
## [0.2.1](https://github.com/jscutlery/devkit/compare/operators-0.2.0...operators-0.2.1) (2022-12-26)
|
|
6
15
|
|
|
7
16
|
|
package/index.cjs
CHANGED
|
@@ -1119,7 +1119,7 @@ function _suspensify(projector) {
|
|
|
1119
1119
|
finalized,
|
|
1120
1120
|
pending: false
|
|
1121
1121
|
};
|
|
1122
|
-
},
|
|
1122
|
+
}, initialState), operators.startWith(initialState));
|
|
1123
1123
|
return projector != null ? result$.pipe(operators.map(projector)) : result$;
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
package/index.js
CHANGED
|
@@ -1115,7 +1115,7 @@ function _suspensify(projector) {
|
|
|
1115
1115
|
finalized,
|
|
1116
1116
|
pending: false
|
|
1117
1117
|
};
|
|
1118
|
-
},
|
|
1118
|
+
}, initialState), startWith(initialState));
|
|
1119
1119
|
return projector != null ? result$.pipe(map(projector)) : result$;
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
package/package.json
CHANGED
package/src/lib/suspensify.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export interface Suspense<T> {
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function suspensify<T, R = Suspense<T>>(): OperatorFunction<T, R>;
|
|
16
16
|
export declare function suspensify<T, R>(projector: (data: Suspense<T>) => R): OperatorFunction<T, R>;
|
|
17
|
+
export declare function suspensify<T, R = Suspense<T>>(projector?: (data: Suspense<T>) => R): OperatorFunction<T, R | Suspense<T>>;
|