UNPKG

@lcap/nasl

Version:

NetEase Application Specific Language

37 lines 834 B
export interface Query { /** * JSON Path */ path: string; excludes: string[]; } export declare enum ActionType { create = "create", delete = "delete", update = "update" } export interface Action { action: ActionType; path: string; object: any; } /** * 通过路径查找节点 * @param json 根节点 * @param path * @returns */ export declare function queryNodeByPath(json: any, path: string): any; /** * 在 JSON 中批量查询 * @param json * @param queryList 查询列表 */ export declare function batchQuery(json: any, queryList: Array<Query>): Promise<any[]>; /** * 在 JSON 中批量操作 * @param json * @param actionList 操作列表 */ export declare function batchAction(json: any, actionList: Array<Action>): Promise<void>; //# sourceMappingURL=jsoner.d.ts.map