diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
| commit | 8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch) | |
| tree | 05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/web-vitals/dist/modules/lib/interactions.d.ts | |
pain
Diffstat (limited to 'frontend-old/node_modules/web-vitals/dist/modules/lib/interactions.d.ts')
| -rw-r--r-- | frontend-old/node_modules/web-vitals/dist/modules/lib/interactions.d.ts | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/frontend-old/node_modules/web-vitals/dist/modules/lib/interactions.d.ts b/frontend-old/node_modules/web-vitals/dist/modules/lib/interactions.d.ts new file mode 100644 index 0000000..5db2b71 --- /dev/null +++ b/frontend-old/node_modules/web-vitals/dist/modules/lib/interactions.d.ts @@ -0,0 +1,31 @@ +interface Interaction { + id: number; + latency: number; + entries: PerformanceEventTiming[]; +} +interface EntryPreProcessingHook { + (entry: PerformanceEventTiming): void; +} +export declare const longestInteractionList: Interaction[]; +export declare const longestInteractionMap: Map<number, Interaction>; +export declare const DEFAULT_DURATION_THRESHOLD = 40; +export declare const resetInteractions: () => void; +/** + * Returns the estimated p98 longest interaction based on the stored + * interaction candidates and the interaction count for the current page. + */ +export declare const estimateP98LongestInteraction: () => Interaction; +/** + * A list of callback functions to run before each entry is processed. + * Exposing this list allows the attribution build to hook into the + * entry processing pipeline. + */ +export declare const entryPreProcessingCallbacks: EntryPreProcessingHook[]; +/** + * Takes a performance entry and adds it to the list of worst interactions + * if its duration is long enough to make it among the worst. If the + * entry is part of an existing interaction, it is merged and the latency + * and entries list is updated as needed. + */ +export declare const processInteractionEntry: (entry: PerformanceEventTiming) => void; +export {}; |
