UNPKG

@cookbook/dot-notation

Version:

Object readings and complex transformations using dot notation syntax.

4 lines (3 loc) 241 B
import type { DotNotationPathOf, DotNotationDataTypeOf } from './contracts'; declare const pick: <T extends object | object[], K extends string | DotNotationPathOf<T>>(source: T, path: K) => DotNotationDataTypeOf<T, K>; export default pick;