Comparing version 1.0.0 to 1.0.1
@@ -13,3 +13,3 @@ export type Direction = "prev" | "next"; | ||
declare function moveNext<TData extends { | ||
[key: string]: unknown; | ||
[key: string]: any; | ||
}[], TSelector, TCurrentId extends undefined | TSelector>(opts: { | ||
@@ -16,0 +16,0 @@ data: TData; |
@@ -12,2 +12,3 @@ "use strict"; | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
function moveNext(opts) { | ||
@@ -14,0 +15,0 @@ var data = opts.data, direction = opts.direction, endBehaviour = opts.endBehaviour, selector = opts.selector, selectedId = opts.selectedId; |
@@ -13,3 +13,3 @@ export type Direction = "prev" | "next"; | ||
declare function moveNext<TData extends { | ||
[key: string]: unknown; | ||
[key: string]: any; | ||
}[], TSelector, TCurrentId extends undefined | TSelector>(opts: { | ||
@@ -16,0 +16,0 @@ data: TData; |
@@ -10,2 +10,3 @@ /** | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
function moveNext(opts) { | ||
@@ -12,0 +13,0 @@ var data = opts.data, direction = opts.direction, endBehaviour = opts.endBehaviour, selector = opts.selector, selectedId = opts.selectedId; |
{ | ||
"name": "movenext", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -23,7 +23,7 @@ Simple and straightforward solution to get the next logical record. | ||
- `data` `{ [key: string]: unknown }[]` _array of records_ | ||
- `data` `{ [key: string]: any }[]` _array of records_ | ||
- `direction` `'prev' | 'next'` _determines the direction_ | ||
- `endBehaviour` `'default' | 'jump'` _behaviour after the last logical entry_ | ||
- `selector(entry) => unknown` _callback for selecting the id reference_ | ||
- `entry` `{ [key: string]: unknown }` _entry of `data`_ | ||
- `selector(entry) => any` _callback for selecting the id reference_ | ||
- `entry` `{ [key: string]: any }` _entry of `data`_ | ||
- `selectedId` `undefined | ...` _current selected id_ | ||
@@ -30,0 +30,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14913
172