UNPKG

@barba/core

Version:

Create badass, fluid and smooth transition between your website's pages

24 lines (23 loc) 512 B
/** * @module typings/core */ import { Link } from './index'; /** * Available data for all prevent checks. * * - `el`: the clicked link * - `event`: the associated event * - `href`: the href to use for fetching */ export interface IPreventCheckData { el: Link; event: Event; href: string; } /** * Prevent check. * * - Receives check data. * - If it returns `true`, Barba will prevent the action. */ export type PreventCheck = (data: IPreventCheckData) => boolean;