botbook/node_modules/@sagold/json-pointer/dist/lib/splitLast.d.ts

7 lines
338 B
TypeScript
Raw Normal View History

2024-09-04 13:13:15 -03:00
import { JsonPointer, JsonPath } from "./types";
/**
* splits the last property of json-pointer and returns the path and property.
* @returns tuple with parent json-pointer and the last property or undefined if pointer a root pointer
*/
export declare function splitLast(pointer: JsonPointer | JsonPath): [string, string | undefined];