Skip to content
Tauri

type

type(): OsType

Defined in: index.ts:123

Returns the current operating system type. Returns 'linux' on Linux, 'macos' on macOS, 'windows' on Windows, 'ios' on iOS and 'android' on Android.

OsType

import { type } from '@tauri-apps/plugin-os';
const osType = type();

2.0.0


© 2025 Tauri Contributors. CC-BY / MIT