chore: biome & ruff checks

This commit is contained in:
MSI\ModSetter 2025-10-01 18:50:36 -07:00
parent 35a7427b00
commit 898fc884a9
5 changed files with 30 additions and 38 deletions

View file

@ -37,10 +37,7 @@ export interface UseDocumentsOptions {
lazy?: boolean;
}
export function useDocuments(
searchSpaceId: number,
options?: UseDocumentsOptions | boolean
) {
export function useDocuments(searchSpaceId: number, options?: UseDocumentsOptions | boolean) {
// Support both old boolean API and new options API for backward compatibility
const opts = typeof options === "boolean" ? { lazy: options } : options || {};
const { page, pageSize = 300, lazy = false } = opts;