File: jsonpointer.d.ts

package info (click to toggle)
node-rjsf 5.12.1%2B~5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,788 kB
  • sloc: javascript: 1,927; makefile: 14; sh: 1
file content (35 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
interface JSONPointer {
    /**
     * Looks up a JSON pointer in an object
     */
    get(object: Object): any;


    /**
     * Set a value for a JSON pointer on object
     */
    set(object: Object, value: any): void;
}


declare namespace JSONPointer {
    /**
     * Looks up a JSON pointer in an object
     */
    function get(object: Object, pointer: string): any;


    /**
     * Set a value for a JSON pointer on object
     */
    function set(object: Object, pointer: string, value: any): void;


    /**
     *  Builds a JSONPointer instance from a pointer value.
     */
    function compile(pointer: string): JSONPointer;
}


export = JSONPointer;