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,15 @@
export interface UseIntervalOptions {
/** If set, the interval will start automatically when the component is mounted, `false` by default */
autoInvoke?: boolean;
}
export interface UseIntervalReturnValue {
/** Starts the interval */
start: () => void;
/** Stops the interval */
stop: () => void;
/** Toggles the interval */
toggle: () => void;
/** Indicates if the interval is active */
active: boolean;
}
export declare function useInterval(fn: () => void, interval: number, { autoInvoke }?: UseIntervalOptions): UseIntervalReturnValue;