@itrocks/data-to-object 0.1.0 → 0.2.0
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 +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,10 +39,7 @@ console.log(user)
|
|
|
39
39
|
## dataToObject()
|
|
40
40
|
|
|
41
41
|
```ts
|
|
42
|
-
|
|
43
|
-
object: T,
|
|
44
|
-
data: RecursiveValueObject
|
|
45
|
-
): Promise<T>
|
|
42
|
+
dataToObject<T extends object>(object: T, data: RecursiveValueObject): Promise<T>
|
|
46
43
|
```
|
|
47
44
|
|
|
48
45
|
Converts raw data (JSON payloads, form inputs, query params…) into a business object
|
package/package.json
CHANGED