Files
Discord-Presence-Relay/src/main/platform/index.ts
T

9 lines
332 B
TypeScript
Raw Normal View History

2026-06-15 02:26:16 +07:00
import { PosixPlatform } from './posix'
import { UnsupportedPlatform } from './unsupported'
import type { RelayPlatform } from './types'
export type { ClaimedSocket, ProcessInfo, RelayPlatform } from './types'
export const platform: RelayPlatform =
process.platform === 'win32' ? new UnsupportedPlatform() : new PosixPlatform()