castPath.d.ts 328 B

12345678910
  1. /**
  2. * Casts `value` to a path array if it's not one.
  3. *
  4. * @private
  5. * @param {*} value The value to inspect.
  6. * @param {Object} [object] The object to query keys on.
  7. * @returns {Array} Returns the cast property path array.
  8. */
  9. declare function castPath(value: any, object: Record<string, any>): any;
  10. export default castPath;