@barba/core
Version:
Create badass, fluid and smooth transition between your website's pages
15 lines (14 loc) • 440 B
TypeScript
/**
* @module typings/core
*/
import { IResponse } from './index';
export interface ICacheData {
action?: CacheAction;
request?: CacheRequest;
status?: CacheStatus;
target?: CacheTarget;
}
export type CacheRequest = Promise<IResponse | void>;
export type CacheAction = 'init' | 'enter' | 'click' | 'prefetch';
export type CacheStatus = 'pending' | 'fulfilled' | 'rejected';
export type CacheTarget = string;