Sha256: c0b6e5315fa809e03209aef92e1000ad60e4c062711b8e2045652b252a336dca

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

declare type NavArgs = readonly [Tags, Sequels, null | LabelSequels, string?];
declare type ComboArgs = readonly [string, string?];
declare type SelectorArgs = readonly [number, string, string?];
interface Tags {
    readonly before: string;
    readonly link: string;
    readonly active: string;
    readonly gap: string;
    readonly after: string;
}
interface Sequels {
    readonly [width: string]: (string | number | "gap")[];
}
interface LabelSequels {
    readonly [width: string]: string[];
}
interface NavElement extends Element {
    pagyRender(): void;
}
declare const Pagy: {
    version: string;
    init(arg?: Element | never): void;
    initNav(el: NavElement, [tags, sequels, labelSequels, trimParam]: NavArgs): void;
    rjsObserver: ResizeObserver;
    initCombo(el: Element, [link, trimParam]: ComboArgs): void;
    initSelector(el: Element, [from, link, trimParam]: SelectorArgs): void;
    initInput(el: Element, getVars: (v: string) => [string, string], trimParam?: string): void;
    trim: (link: string, param: string) => string;
};
export default Pagy;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pagy-5.8.1 lib/javascripts/pagy-module.d.ts
pagy-5.7.5 lib/javascripts/pagy-module.d.ts
pagy-5.7.4 lib/javascripts/pagy-module.d.ts