flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
17 lines (16 loc) • 679 B
TypeScript
import { ProtoResponse } from "../response";
import { HttpResponse } from "../httpresponse";
import { iResponse, iValue } from "../interfaces";
import { ValuePromise } from "../value-promise";
import { ScenarioType } from "../scenario-types";
import { JPathProvider, JsonDoc } from "./jpath";
export declare class JsonResponse extends ProtoResponse implements iResponse, JPathProvider {
jsonDoc: JsonDoc | undefined;
get responseTypeName(): string;
get responseType(): ScenarioType;
init(httpResponse: HttpResponse): void;
getRoot(): any;
eval(): Promise<any>;
find: (path: string) => ValuePromise;
findAll: (path: string) => Promise<iValue[]>;
}