jsonld-streaming-parser
Version:
A fast and lightweight streaming JSON-LD parser
15 lines (14 loc) • 544 B
TypeScript
import { ParsingContext } from "../ParsingContext";
import { Util } from "../Util";
import { IContainerHandler } from "./IContainerHandler";
/**
* Container handler for @index.
*
* This will ignore the current key and add this entry to the parent node.
*/
export declare class ContainerHandlerIndex implements IContainerHandler {
canCombineWithGraph(): boolean;
handle(containers: {
[typeName: string]: boolean;
}, parsingContext: ParsingContext, util: Util, keys: string[], value: any, depth: number): Promise<void>;
}