@barba/core
Version:
Create badass, fluid and smooth transition between your website's pages
12 lines (11 loc) • 454 B
TypeScript
/**
* @module typings/core
*/
import { Trigger } from '.';
export declare type RequestError = (url: string, errorOrResponse: RequestErrorOrResponse) => boolean;
export declare type RequestCustomError = (trigger: Trigger, action: string, url: string, response: RequestErrorOrResponse) => boolean;
export interface IXhrResponse {
status: number;
statusText: string;
}
export declare type RequestErrorOrResponse = Error | IXhrResponse;