Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
/**
* Changes the indices of every error that is after the given `index` with the given `change` at the given `path`.
* This requires that the errors are in the format of `path.index` and that the index is a number.
*/
export declare function changeErrorIndices<T extends Record<PropertyKey, any>>(path: PropertyKey, index: number | undefined, errors: T, change: 1 | -1): T;

View File

@@ -0,0 +1 @@
export declare function clearListState<T extends Record<PropertyKey, any>>(field: PropertyKey, state: T): T;

3
node_modules/@mantine/form/lib/lists/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export { clearListState } from './clear-list-state';
export { changeErrorIndices } from './change-error-indices';
export { reorderErrors } from './reorder-errors';

View File

@@ -0,0 +1,2 @@
import { ReorderPayload } from '../types';
export declare function reorderErrors<T>(path: unknown, { from, to }: ReorderPayload, errors: T): T;