From bbe53cb2e14deb04cf2e0aeae8dec1f15c516091 Mon Sep 17 00:00:00 2001 From: Marc Shilling Date: Wed, 5 Apr 2023 11:19:23 -0400 Subject: [PATCH] fix types --- README.md | 2 +- index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9f2ad7d..95cea4a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A cross-platform bridge that allows you to enable and disable the screen idle ti ## Install -`npm install react-native-idle-timer@latest --save` +`yarn add react-native-idle-timer` ## Link diff --git a/index.d.ts b/index.d.ts index a205369..2ff17ec 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ declare namespace RNIdleTimer { - function setIdleTimerDisabled(disabled: boolean, tag: string | undefined): void; + function setIdleTimerDisabled(disabled: boolean, tag?: string): void; } -export = RNIdleTimer +export = RNIdleTimer;