undergroundwires/privacy.sexy

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

Summary

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

export interface BrowserEnvironment {
  readonly isTouchSupported: boolean;
  readonly userAgent: string;
}

export interface BrowserOsDetector {
  detect(environment: BrowserEnvironment): OperatingSystem | undefined;
}