Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
16 lines
565 B
Plaintext
16 lines
565 B
Plaintext
/**
|
|
*
|
|
* @deprecated use getObjectDotNotation from `'payload/shared'` instead of `'payload'`
|
|
*
|
|
* @example
|
|
*
|
|
* ```ts
|
|
* import { getObjectDotNotation } from 'payload/shared'
|
|
*
|
|
* const obj = { a: { b: { c: 42 } } }
|
|
* const value = getObjectDotNotation<number>(obj, 'a.b.c', 0) // value is 42
|
|
* const defaultValue = getObjectDotNotation<number>(obj, 'a.b.x', 0) // defaultValue is 0
|
|
* ```
|
|
*/
|
|
export declare const getObjectDotNotation: <T>(obj: Record<string, unknown>, path: string, defaultValue?: T) => T;
|
|
//# sourceMappingURL=getObjectDotNotation.d.ts.map |