undergroundwires/privacy.sexy

View on GitHub
src/infrastructure/RuntimeEnvironment/Browser/BrowserOs/BrowserCondition.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { OperatingSystem } from '@/domain/OperatingSystem';

export enum TouchSupportExpectation {
  MustExist,
  MustNotExist,
}

export interface BrowserCondition {
  readonly operatingSystem: OperatingSystem;

  readonly existingPartsInSameUserAgent: readonly string[];

  readonly notExistingPartsInUserAgent?: readonly string[];

  readonly touchSupport?: TouchSupportExpectation;
}