UNPKG

baseframe-js

Version:

A suite of useful Javascript plugins and functions to help with Front-end Development on websites

20 lines (19 loc) 681 B
import type { Cash } from "cash-dom"; export type StateChangeType = 'push' | 'replace'; export type UrlSearchType = 'search' | 'hash' | 'hashVal'; export type PlainObject<T> = Record<string, T>; export type StringPluginArgChoices = 'remove' | 'update'; export type PrimaryClickElems = HTMLButtonElement | HTMLAnchorElement; export type PluginBaseClass = { version: string; pluginName: string; remove: (element: Cash) => void; Constructor?: Function; new (...args: any[]): any; }; export interface LocationHashTracking { historyType: StateChangeType; urlFilterType: UrlSearchType | 'none'; locationFilter: string | null; loadLocation: boolean; }