@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
4 lines (3 loc) • 397 B
TypeScript
import type { ActionLogExternalApi, GetExternalApiConfiguration } from './types';
/** used to generate timing API that can be used outside of React, or together with React */
export declare const getExternalApi: <CustomMetadata extends Record<string, unknown>>({ actionLogCache, idPrefix, placement, }: GetExternalApiConfiguration<string, CustomMetadata>) => ActionLogExternalApi<CustomMetadata>;