flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
43 lines (42 loc) • 1.43 kB
TypeScript
import { iAssertionContext, iValue } from './interfaces';
export declare abstract class ProtoValue implements iValue {
protected _input: any;
protected _context: iAssertionContext;
protected _name: string | null;
protected _parent: any;
protected _highlight: string;
protected _sourceCode: string | null;
readonly $: any;
readonly name: string;
readonly highlight: string;
readonly parent: any;
readonly sourceCode: string;
constructor(input: any, context: iAssertionContext, name?: string, parent?: any, highlight?: string);
toArray(): any[];
valueOf(): any;
toString(): string;
toFloat(): number;
toInteger(): number;
toType(): string;
isNullOrUndefined(): boolean;
isUndefined(): boolean;
isNull(): boolean;
isPromise(): boolean;
isArray(): boolean;
isString(): boolean;
isObject(): boolean;
isNumber(): boolean;
isNumeric(): boolean;
isNaN(): boolean;
isCookie(): boolean;
isRegularExpression(): boolean;
isCheerioElement(): boolean;
isPuppeteerElement(): boolean;
hasProperty(key: string): Promise<Value>;
protected _wrapAsValue(data: any, name: string, parent?: any, highlight?: string): Value;
}
export declare class Value extends ProtoValue implements iValue {
getProperty(key: string): Promise<any>;
hasProperty(key: string): Promise<Value>;
readonly length: Value;
}