UNPKG

@raona/sp

Version:

Raona utilities to work with Sharepoint using pnp/sp

9 lines (8 loc) 460 B
/** * Querys an object indicating a dot splitted query * @template T the expected return type (don't lie to the compiler) * @param o Object to get queried * @param query query to use on the object (for example 'a.b.c' will return the value of c that is inside b that is inside a) * @returns the value of the queried property if exists, otherwise undefined */ export declare function queryObject<T = any>(o: Object, query: string): T | undefined;