/// declare namespace Cypress { interface Cypress { cy?: Chainable; } interface Chainable { // Add any custom commands here } // Fix for uncaught:exception event interface Actions { (action: 'uncaught:exception', fn: (err: Error, runnable?: any) => boolean | void): void; } } // Augment Cypress types to properly type jQuery results declare global { namespace Cypress { interface JQuery extends JQuery { [index: number]: TElement; length: number; each(fn: (index: number, elem: TElement) => void): JQuery; filter(fn: (index: number, elem: TElement) => boolean): JQuery; find(selector: string): JQuery; text(): string; attr(name: string): string | undefined; last(): JQuery; } // Fix Subject type to include response properties interface Response { status: number; body: T; headers: { [key: string]: string }; } } } export {};