Skip to content

Commit

Permalink
Adjust export semantics for WebPerformance symbols (#41300)
Browse files Browse the repository at this point in the history
Summary:

## Changelog:
[Internal] -
Makes the corresponding module exports more uniform.

Reviewed By: rubennorte

Differential Revision: D50960468
  • Loading branch information
rshest authored and facebook-github-bot committed Nov 3, 2023
1 parent 53a2742 commit 9db0b0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type PerformanceEventTimingJSON = {
...
};

export class PerformanceEventTiming extends PerformanceEntry {
export default class PerformanceEventTiming extends PerformanceEntry {
processingStart: HighResTimeStamp;
processingEnd: HighResTimeStamp;
interactionId: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {HighResTimeStamp, PerformanceEntryType} from './PerformanceEntry';
import warnOnce from '../Utilities/warnOnce';
import NativePerformanceObserver from './NativePerformanceObserver';
import {PerformanceEntry} from './PerformanceEntry';
import PerformanceEventTiming from './PerformanceEventTiming';
import {
performanceEntryTypeToRaw,
rawToPerformanceEntry,
Expand Down Expand Up @@ -332,3 +333,5 @@ function union<T>(
function difference<T>(a: $ReadOnlySet<T>, b: $ReadOnlySet<T>): Set<T> {
return new Set([...a].filter(x => !b.has(x)));
}

export {PerformanceEventTiming};
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {
import type {PerformanceEntryType} from './PerformanceEntry';

import {PerformanceEntry} from './PerformanceEntry';
import {PerformanceEventTiming} from './PerformanceEventTiming';
import PerformanceEventTiming from './PerformanceEventTiming';

export const RawPerformanceEntryTypeValues = {
UNDEFINED: 0,
Expand Down

0 comments on commit 9db0b0a

Please sign in to comment.