json-property-filter
Version:
JavaScript library and application to filter a JSON object by including and excluding properties.
16 lines (15 loc) • 412 B
TypeScript
export interface Context {
absolutePath: string;
segments: string[];
relativePath: string;
}
export declare const EMPTY_CONTEXT: {
absolutePath: string;
segments: never[];
relativePath: string;
};
export declare function createContext(context: Context, source: object, propertyName: string): {
absolutePath: string;
relativePath: string;
segments: string[];
};