@types/bramus__pagination-sequence
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Installation

npm install --save @types/bramus__pagination-sequence

Summary

This package contains type definitions for @bramus/pagination-sequence (https://github.com/bramus/js-pagination-sequence#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bramus__pagination-sequence.

index.d.ts

declare function generate(
    curPage: number,
    numPages: number,
    numPagesAtEdges?: number,
    numPagesAroundCurrent?: number,
    glue?: string,
): Array<number | string>;

interface Options {
    curPage?: number;
    numPages?: number;
    numPagesAtEdges?: number;
    numPagesAroundCurrent?: number;
    glue?: string;
}

declare function generateFromObj(opts?: Options): Array<string | number>;

export { generate, generateFromObj };

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Kristján Jökull Sigurðsson.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/bramus__pagination-sequence

Weekly Downloads

1,635

Version

1.2.2

License

MIT

Unpacked Size

3.65 kB

Total Files

5

Last publish

Collaborators

  • types