@inquirer/core
Advanced tools
Comparing version 5.1.2 to 6.0.0
@@ -12,3 +12,3 @@ "use strict"; | ||
const position_mjs_1 = require('./position.js'); | ||
function usePagination({ items, active, renderItem, pageSize = 7, loop = true, }) { | ||
function usePagination({ items, active, renderItem, pageSize, loop = true, }) { | ||
const state = (0, use_ref_mjs_1.useRef)({ position: 0, lastActive: 0 }); | ||
@@ -15,0 +15,0 @@ const position = loop |
@@ -9,6 +9,6 @@ import { type Prettify } from '@inquirer/type'; | ||
renderItem: (layout: Prettify<Layout<T>>) => string; | ||
/** The size of the page. `7` if unspecified. */ | ||
pageSize?: number; | ||
/** The size of the page. */ | ||
pageSize: number; | ||
/** Allows creating an infinitely looping list. `true` if unspecified. */ | ||
loop?: boolean; | ||
}): string; |
{ | ||
"name": "@inquirer/core", | ||
"version": "5.1.2", | ||
"version": "6.0.0", | ||
"engines": { | ||
@@ -98,3 +98,3 @@ "node": ">=14.18.0" | ||
}, | ||
"gitHead": "6c0d1d23e6881a10bc3d718d079a0a09ba382dd5" | ||
"gitHead": "4dee2b11d89a7c8a698c9eeda546ba8092b84f64" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
77515