node_modules ignore

This commit is contained in:
oier committed 2025-05-08 23:43:47 +02:00
1 parent e19d52f172
commit 4574544c9f
65041 files changed
+10593536

No files matched your search

@@ -0,0 +1,6 @@
/**
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
* prop or avoid re-executing effects when passed as a dependency
*/
declare function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined): T;
export { useCallbackRef };
@@ -0,0 +1,9 @@
/**
* Stolen from @react-aria/i18n
*/
/**
* Provides localized string collation for the current locale. Automatically updates when the locale changes,
* and handles caching of the collator for performance.
* @param options - Collator options.
*/
export declare function useCollator(locale: string, options?: Intl.CollatorOptions): Intl.Collator;
+16
View File
@@ -0,0 +1,16 @@
/**
* Stolen from @react-aria/i18n
*/
export interface Filter {
/** Returns whether a string starts with a given substring. */
startsWith(string: string, substring: string): boolean;
/** Returns whether a string ends with a given substring. */
endsWith(string: string, substring: string): boolean;
/** Returns whether a string contains a given substring. */
contains(string: string, substring: string): boolean;
}
/**
* Provides localized string search functionality that is useful for filtering or matching items
* in a list. Options can be provided to adjust the sensitivity to case, diacritics, and other parameters.
*/
export declare function useFilter(locale: string, options?: Intl.CollatorOptions): Filter;
+1
View File
@@ -0,0 +1 @@
export declare const usePrev: <T>(value: T) => T | undefined;