@types/pathval
Version:
TypeScript definitions for pathval
35 lines (26 loc) • 1.08 kB
Markdown
# Installation
> `npm install --save @types/pathval`
# Summary
This package contains type definitions for pathval (https://www.npmjs.com/package/pathval).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pathval.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pathval/index.d.ts)
````ts
export interface PathInfo {
parent: object;
name: string;
value?: any;
exists: boolean;
}
export type Property = string | symbol | number;
export function hasProperty(obj: object | undefined | null, name: Property): boolean;
export function getPathInfo(obj: object, path: string): PathInfo;
export function getPathValue(obj: object, path: string): object | undefined;
export function setPathValue(obj: object, path: string, val: any): object;
export as namespace pathval;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
# Credits
These definitions were written by [Rebecca Turner](https://github.com/9999years).