Outlook_Addin_LLM/node_modules/@fluentui/react-hooks/lib/useSetTimeout.d.ts

9 lines
312 B
TypeScript
Raw Permalink Normal View History

export type UseSetTimeoutReturnType = {
setTimeout: (callback: () => void, duration: number) => number;
clearTimeout: (id: number) => void;
};
/**
* Returns a wrapper function for `setTimeout` which automatically handles disposal.
*/
export declare const useSetTimeout: () => UseSetTimeoutReturnType;