UNPKG

cypress-wait-for-stable-dom

Version:
25 lines (22 loc) 600 B
// load type definitions that come with Cypress module /// <reference types="cypress" /> type Options = { pollInterval?: number; timeout?: number; mutationObserver?: { subtree?: boolean; childList?: boolean; attributes?: boolean; attributeOldValue?: boolean; characterData?: boolean; characterDataOldValue?: boolean; }, } declare namespace Cypress { interface Chainable { waitForStableDOM(options?: Options): Chainable<JQuery<HTMLElement>> } } declare module "cypress-wait-for-stable-dom" { export var registerCommand: (defaultOptions?: Options) => void; }