@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
10 lines (9 loc) • 463 B
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import type { DependencyList } from 'react';
import type { UseTimingHookConfiguration } from './types';
export declare const useTiming: <CustomMetadata extends Record<string, unknown> = never>(options: UseTimingHookConfiguration<CustomMetadata>, restartWhenChanged?: DependencyList) => void;