UNPKG

epic-slidy

Version:
16 lines (15 loc) 610 B
import { GenericObject } from '../defs'; /** * Get nearest ancestor by classname */ export declare function parents(element: HTMLElement, className: string): HTMLElement | null; /** * Check for touchevents. */ export declare function touchevents(): boolean; /** * Format number (zerofill or not) */ export declare function format(number: number, nbItems: number, zerofill: boolean | number): string; export declare function parseTpl(template: string, map: GenericObject, fallback?: string): string; export declare function debounce(func: Function, wait: number): (...args: any[]) => void;