UNPKG

@zendesk/react-measure-timing-hooks

Version:

react hooks for measuring time to interactive and time to render of components

10 lines (9 loc) 509 B
/** * 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 { ActionLog } from './ActionLog'; import type { UseActionLogOptions } from './types'; export declare const useActionLog: <CustomMetadata extends Record<string, unknown> = Record<string, unknown>>({ id, actionLogCache, garbageCollectMs, ...actionLogOptions }: UseActionLogOptions<CustomMetadata>) => ActionLog<CustomMetadata>;