nhb-toolbox 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import type { Numeric } from '../types';
2
+ /** Options to initialize Paginator */
2
3
  export interface PaginatorOptions {
3
4
  /** The total number of items. */
4
5
  totalItems: Numeric;
@@ -7,15 +8,25 @@ export interface PaginatorOptions {
7
8
  /** Current active page. (Default is `1`). */
8
9
  currentPage?: Numeric;
9
10
  }
11
+ /** Paginator metadata */
10
12
  export interface PaginatorMeta {
13
+ /** Total number of items in the dataset. */
11
14
  totalItems: number;
15
+ /** The current page number in the pagination. */
12
16
  currentPage: number;
17
+ /** The number of items per page in the pagination. */
13
18
  itemsPerPage: number;
19
+ /** The total number of pages based on the totalItems and itemsPerPage. */
14
20
  totalPages: number;
21
+ /** Whether the current page has a previous page. */
15
22
  hasPrev: boolean;
23
+ /** Whether the current page has a next page. */
16
24
  hasNext: boolean;
25
+ /** Whether the current page is the first page. */
17
26
  isFirst: boolean;
27
+ /** Whether the current page is the last page. */
18
28
  isLast: boolean;
29
+ /** The number of items to skip (the offset) for the current page. */
19
30
  offset: number;
20
31
  }
21
32
  /** Options for `fromMeta` method. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,gBAAgB;IAChC,iCAAiC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,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AI,CACjC,aAAa,EACb,YAAY,GAAG,cAAc,GAAG,aAAa,CAC7C,CAAC;AAEF,mCAAmC;AACnC,MAAM,WAAW,eAAe;IAC/B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "4.1.00",
3
+ "version": "4.1.01",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",