UNPKG

@zendesk/retrace

Version:

define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API

10 lines (9 loc) 463 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 { DependencyList } from 'react'; import type { UseTimingHookConfiguration } from './types'; export declare const useTiming: <CustomMetadata extends Record<string, unknown> = never>(options: UseTimingHookConfiguration<CustomMetadata>, restartWhenChanged?: DependencyList) => void;