planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
export { useCombinedRefs } from './useCombinedRefs';
export { useEvent } from './useEvent';
export { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';
export { useInterval } from './useInterval';
export { useLatestValue } from './useLatestValue';
export { useLazyMemo } from './useLazyMemo';
export { useNodeRef } from './useNodeRef';
export { usePrevious } from './usePrevious';
export { useUniqueId } from './useUniqueId';

View File

@@ -0,0 +1 @@
export declare function useCombinedRefs<T>(...refs: ((node: T) => void)[]): (node: T) => void;

View File

@@ -0,0 +1 @@
export declare function useEvent<T extends Function>(handler: T | undefined): (...args: any) => any;

View File

@@ -0,0 +1 @@
export declare function useInterval(): readonly [(listener: Function, duration: number) => void, () => void];

View File

@@ -0,0 +1,6 @@
import { useLayoutEffect } from 'react';
/**
* A hook that resolves to useEffect on the server and useLayoutEffect on the client
* @param callback {function} Callback function that is invoked when the dependencies of the hook change
*/
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;

View File

@@ -0,0 +1,2 @@
import type { DependencyList } from 'react';
export declare function useLatestValue<T extends any>(value: T, dependencies?: DependencyList): import("react").MutableRefObject<T>;

View File

@@ -0,0 +1 @@
export declare function useLazyMemo<T>(callback: (prevValue: T | undefined) => T, dependencies: any[]): T;

View File

@@ -0,0 +1,2 @@
/// <reference types="react" />
export declare function useNodeRef(onChange?: (newElement: HTMLElement | null, previousElement: HTMLElement | null) => void): readonly [import("react").MutableRefObject<HTMLElement | null>, (element: HTMLElement | null) => void];

View File

@@ -0,0 +1 @@
export declare function usePrevious<T>(value: T): T | undefined;

View File

@@ -0,0 +1 @@
export declare function useUniqueId(prefix: string, value?: string): string;