npm.io
1.1.2 • Published 2 years ago

@types/pathval

Licence
MIT
Version
1.1.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Rebecca Turner.