Skip to content

Commit 93bd2a0

Browse files
authored
fix: sync types with TS v5.5 (#497)
1 parent ab43b1f commit 93bd2a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/types.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ declare global {
8181

8282
// https://w3c.github.io/largest-contentful-paint/#sec-largest-contentful-paint-interface
8383
interface LargestContentfulPaint extends PerformanceEntry {
84-
renderTime: DOMHighResTimeStamp;
85-
loadTime: DOMHighResTimeStamp;
86-
size: number;
87-
id: string;
88-
url: string;
89-
element?: Element;
84+
readonly renderTime: DOMHighResTimeStamp;
85+
readonly loadTime: DOMHighResTimeStamp;
86+
readonly size: number;
87+
readonly id: string;
88+
readonly url: string;
89+
readonly element: Element | null;
9090
}
9191

9292
// https://w3c.github.io/long-animation-frame/#sec-PerformanceLongAnimationFrameTiming

0 commit comments

Comments
 (0)