FEAT: return google sheets entire link

This commit is contained in:
Gabriel Amorim
2023-02-24 15:58:06 -03:00
parent c2eec4e95c
commit 2646e3e4f6
3 changed files with 30 additions and 15 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
export function getObjValueFromPath<T>(data: { object: T; path: string }): T {
export function getObjValueFromPath<T extends object>(data: {
object: T;
path: string;
}): any {
const { object, path } = data;
const keys = path.split('.');