Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2a282a40
Unverified
Commit
2a282a40
authored
Jul 20, 2021
by
Mikhail Tsyplakov
Committed by
GitHub
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix type NextWebVitalsMetric (#24780)
Co-authored-by:
JJ Kasper
<
jj@jjsweb.site
>
parent
5cd37d9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
utils.ts
packages/next/shared/lib/utils.ts
+13
-3
No files found.
packages/next/shared/lib/utils.ts
View file @
2a282a40
...
@@ -49,11 +49,21 @@ export type AppTreeType = ComponentType<
...
@@ -49,11 +49,21 @@ export type AppTreeType = ComponentType<
*/
*/
export
type
NextWebVitalsMetric
=
{
export
type
NextWebVitalsMetric
=
{
id
:
string
id
:
string
label
:
string
name
:
string
startTime
:
number
startTime
:
number
value
:
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
export
type
Enhancer
<
C
>
=
(
Component
:
C
)
=>
C
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment