Files
headroom/frontend/node_modules/svelte-eslint-parser/lib/utils/index.d.ts
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

24 lines
1.0 KiB
TypeScript

import type { TSESTree } from "@typescript-eslint/types";
import type ESTree from "estree";
/**
* Add element to a sorted array
*/
export declare function addElementToSortedArray<T>(array: T[], element: T, compare: (a: T, b: T) => number): void;
/**
* Add element to a sorted array
*/
export declare function addElementsToSortedArray<T>(array: T[], elements: T[], compare: (a: T, b: T) => number): void;
/**
* Uses a binary search to determine the highest index at which value should be inserted into array in order to maintain its sort order.
*/
export declare function sortedLastIndex<T>(array: T[], compare: (target: T) => number): number;
/**
* Checks if the given element has type information.
*
* Note: This function is not exhaustive and does not cover all possible cases.
* However, it works sufficiently well for this parser.
* @param element The element to check.
* @returns True if the element has type information, false otherwise.
*/
export declare function hasTypeInfo(element: ESTree.Expression | TSESTree.Expression): boolean;