File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,12 @@ export type WithDevToolsPayload<T extends TrackEntryPayload | MarkerPayload> = {
117117 devtools ?: T ;
118118} ;
119119
120+ /**
121+ * Combined detail payload type for performance entries with DevTools support.
122+ */
123+ export type DetailPayloadWithDevtools = WithDevToolsPayload <
124+ TrackEntryPayload | MarkerPayload
125+ > ;
120126/**
121127 * Extended MarkOptions that supports DevTools payload in detail.
122128 * @example
Original file line number Diff line number Diff line change 1- import type {
2- MarkerPayload ,
3- TrackEntryPayload ,
4- WithDevToolsPayload ,
5- } from './lib/user-timing-extensibility-api.type' ;
1+ import type { DetailPayloadWithDevtools } from './lib/user-timing-extensibility-api.type' ;
62
73export { } ;
84
9- type DetailPayloadWithDevtools = WithDevToolsPayload <
10- TrackEntryPayload | MarkerPayload
11- > ;
12-
135declare module 'node:perf_hooks' {
146 interface PerformanceEntry {
157 readonly detail ?: DetailPayloadWithDevtools ;
You can’t perform that action at this time.
0 commit comments