evg_observable 1.12.52 → 1.12.53
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/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -260,7 +260,7 @@ observable$.next(TARGET_DATA);
|
|
|
260
260
|
|
|
261
261
|
To convert the observable's data to JSON format, you can use the serialize method. This method turns the observer's
|
|
262
262
|
input data into a JSON string before sending them to subscribers.
|
|
263
|
-
Return Value: An ISetup
|
|
263
|
+
Return Value: An ISetup<string> object
|
|
264
264
|
Usage Example:
|
|
265
265
|
|
|
266
266
|
```ts
|
|
@@ -280,11 +280,11 @@ observable
|
|
|
280
280
|
observable.next(rawObject);
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
-
### pipe().deserialize
|
|
283
|
+
### pipe().deserialize<K>()
|
|
284
284
|
|
|
285
285
|
The deserialize method is used to convert data received from the observer from a JSON string back into a JavaScript
|
|
286
286
|
object.
|
|
287
|
-
Return Value: An ISetup
|
|
287
|
+
Return Value: An ISetup<K> object, where K is the type of data resulting from the transformation.
|
|
288
288
|
Usage Example:
|
|
289
289
|
|
|
290
290
|
```ts
|