@tmlmobilidade/utils 20250726.100.40 → 20250727.2204.28
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Utility function that returns the value at a given path in an object.
|
|
3
|
-
* @param
|
|
4
|
-
* @param
|
|
5
|
-
* @returns
|
|
3
|
+
* @param obj The object to retrieve the value from.
|
|
4
|
+
* @param path The path to the value in the object.
|
|
5
|
+
* @returns The value at the given path or undefined if the path is invalid.
|
|
6
6
|
*/
|
|
7
7
|
export declare function getValueAtPath<T>(obj: T, path: keyof T | (NonNullable<unknown> & string)): unknown;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
/**
|
|
3
3
|
* Utility function that returns the value at a given path in an object.
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @returns
|
|
4
|
+
* @param obj The object to retrieve the value from.
|
|
5
|
+
* @param path The path to the value in the object.
|
|
6
|
+
* @returns The value at the given path or undefined if the path is invalid.
|
|
7
7
|
*/
|
|
8
8
|
export function getValueAtPath(obj, path) {
|
|
9
9
|
if (!path)
|
package/package.json
CHANGED