Type Aliases
JSONPathValue
<T, P>: P extends `${infer Start
}.${infer Rest
}` ? Start extends Root ? PathValueAccessor<T, Rest> : never : P extends Root ? T : neverVariables
JSONPath
: { get: <T, P>(json: T, path: P, options?: Omit<JSONPathOptions, json | path>) => JSONPathValue<T, P> } = ...Type declaration
get: <T, P>(json: T, path: P, options?: Omit<JSONPathOptions, json | path>) => JSONPathValue<T, P>
- <T, P>(json: T, path: P, options?: Omit<JSONPathOptions, json | path>): JSONPathValue<T, P>
Type parameters
Parameters
json: T
path: P
options: Omit<JSONPathOptions, json | path> = {}