UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

17 lines (16 loc) 671 B
import { iResponse, NormalizedResponse, GenericResponse, ResponseType } from "./response"; import { Scenario } from "./scenario"; import { Value } from './value'; import { iJPath } from './jpath'; export declare class JsonResponse extends GenericResponse implements iResponse { protected _json: {}; protected _jPath: iJPath | undefined; readonly typeName: string; readonly type: ResponseType; constructor(scenario: Scenario, response: NormalizedResponse); getRoot(): any; evaluate(context: any, callback: Function): Promise<any>; find(path: string): Promise<Value>; findAll(path: string): Promise<Value[]>; private loadJmesPath; }