interface PageObjectType {
    destroy: () => Promise<void>;
    getGeneralState: () => Promise<null | GeneralStateType>;
    getOriginalBBox: () => Promise<Rect>;
    getType: () => Promise<number>;
    options: Options;
}

Implemented by

Properties

destroy: () => Promise<void>

Destroy the current object.

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

getGeneralState: () => Promise<null | GeneralStateType>

Get the general state of the object.

Type declaration

getOriginalBBox: () => Promise<Rect>

Get the original bounding box of the object.

Type declaration

    • (): Promise<Rect>
    • Returns Promise<Rect>

      Returns a Promise that resolves with a Rect instance.

getType: () => Promise<number>

Get the type of the object.

options: Options