@types/pathval
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pathval

Weekly Downloads

2,285

Version

1.1.2

License

MIT

Unpacked Size

3.51 kB

Total Files

5

Last publish

Collaborators

  • types