UNPKG

@cookbook/dot-notation

Version:

Object readings and complex transformations using dot notation syntax.

9 lines (8 loc) 227 B
/** * Parse object from dot notation * @template T * @param {Object.<string, unknown>} source * @return {T|T[]} */ declare const parse: <T>(source: Record<string, unknown>) => T extends [] ? T[] : T; export default parse;