Skip to content

Commit

Permalink
fix: VisibilityState type for typescript >4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkuba committed Apr 18, 2023
1 parent 1b50f91 commit 446095f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ import { InMemoryLogRecordExporter } from './../../../src/export/InMemoryLogReco
const describeDocument =
typeof document === 'object' ? describe : describe.skip;

/**
* VisibilityState has been removed from TypeScript 4.6.0+
*/
type WebVisibilityState = 'visible' | 'hidden';

describeDocument('BatchLogRecordProcessor - web main context', () => {
let visibilityState: VisibilityState = 'visible';
let visibilityState: WebVisibilityState = 'visible';
let exporter: LogRecordExporter;
let processor: BatchLogRecordProcessor;
let forceFlushSpy: sinon.SinonStub;
Expand Down

0 comments on commit 446095f

Please sign in to comment.