Skip to content

Commit

Permalink
Update src/types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Jul 9, 2024
1 parent c8a72f6 commit 00f4180
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,8 @@ export type NetworkRequest = {
// we mirror PerformanceEntry since we read into this type from a PerformanceObserver,
// but we don't want to inherit its readonly-iness
type Writable<T> = { -readonly [P in keyof T]: T[P] }
type CapturedNetworkRequestBase = Writable<Omit<PerformanceEntry, 'toJSON'>>

type CapturedNetworkRequest = CapturedNetworkRequestBase & {
export type CapturedNetworkRequest = Writable<Omit<PerformanceEntry, 'toJSON'>> & {
// properties below here are ALPHA, don't rely on them, they may change without notice
method?: string
initiatorType?: InitiatorType
Expand Down

0 comments on commit 00f4180

Please sign in to comment.