From 7bd525d770ddf84915e7dd3f617c4abda312aca9 Mon Sep 17 00:00:00 2001 From: TakuyaTaniguchi Date: Wed, 3 Jul 2024 09:30:44 +0900 Subject: [PATCH] Update index.d.ts type IOsTypes Adding strict string types to IosTypes to ensure more precise type checking. --- index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index c53a8c4..3dab8f5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -92,11 +92,11 @@ declare namespace ReactDeviceDetect { } interface IOsTypes { - IOS: string; - Android: string; - WindowsPhone: string; - Windows: string; - MAC_OS: string; + IOS: 'iOS'; + Android: 'Android'; + WindowsPhone: 'Windows Phone'; + Windows: 'Windows'; + MAC_OS: 'Mac OS'; } interface IBrowserTypes {