array-of-arrays-into-ast
Version:
Turns an array of arrays of data into a nested tree of plain objects
16 lines (14 loc) • 379 B
TypeScript
declare const version: string;
interface PlainObj {
[key: string]: any;
}
interface Opts {
dedupe: boolean;
}
declare const defaults: Opts;
/**
* Turns an array of arrays of data into a nested tree of plain objects
*/
declare function generateAst(inputArr: any[], opts?: Partial<Opts>): PlainObj;
export { defaults, generateAst, version };
export type { Opts, PlainObj };