@hn3000/json-ref
Version:
simple resolver for json reference and json pointer
19 lines (18 loc) • 607 B
TypeScript
import { JsonPointer } from './json-ptr';
export declare class JsonReference {
/**
* Returns a JsonReference object from a string or JsonReference.
* Used to allow clients to pass in either a string or a JsonReference without having
* to deal with the difference.
*
* @param path string or JsonReference
*/
static get(ref: string | JsonReference): JsonReference;
constructor(ref: string);
static getFilename(ref: string): string;
get filename(): string;
get pointer(): JsonPointer;
toString(): string;
private _filename;
private _pointer;
}