UNPKG

@zendesk/react-measure-timing-hooks

Version:

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

8 lines (7 loc) 487 B
import type { PerformanceEntrySpan, ResourceSpan } from './spanTypes'; import type { DeriveRelationsFromPerformanceEntryFn } from './types'; /** * Maps Performance Entry to a Span * @returns The span. */ export declare function getSpanFromPerformanceEntry<RelationSchemasT>(inputEntry: PerformanceEntry, deriveRelationFromPerformanceEntry?: DeriveRelationsFromPerformanceEntryFn<RelationSchemasT>): PerformanceEntrySpan<RelationSchemasT> | ResourceSpan<RelationSchemasT> | undefined;