Unverified Commit 2a282a40 authored by Mikhail Tsyplakov's avatar Mikhail Tsyplakov Committed by GitHub

fix type NextWebVitalsMetric (#24780)

Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 5cd37d9b
......@@ -49,11 +49,21 @@ export type AppTreeType = ComponentType<
*/
export type NextWebVitalsMetric = {
id: string
label: string
name: string
startTime: number
value: number
}
} & (
| {
label: 'web-vital'
name: 'FCP' | 'LCP' | 'CLS' | 'FID' | 'TTFB'
}
| {
label: 'custom'
name:
| 'Next.js-hydration'
| 'Next.js-route-change-to-render'
| 'Next.js-render'
}
)
export type Enhancer<C> = (Component: C) => C
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment