From 72cfc0867571b216275d26b997ddb5d2d7eb1836 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Wed, 29 Jun 2016 10:18:56 +0300 Subject: [PATCH 1/2] fix(localforage): fix driver() method to return string There seems to be a misunderstanding to what [the `driver()` method returns](https://github.com/mozilla/localForage/blob/master/src/localforage.js#L218-L220). Since it returns `LocalForageDriver._driver` it should be a string. --- localForage/localForage.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localForage/localForage.d.ts b/localForage/localForage.d.ts index 89e767037b..029e6bf16b 100644 --- a/localForage/localForage.d.ts +++ b/localForage/localForage.d.ts @@ -52,7 +52,7 @@ interface LocalForage { config(options: LocalForageOptions): boolean; createInstance(options: LocalForageOptions): LocalForage; - driver(): LocalForageDriver; + driver(): string | null; /** * Force usage of a particular driver or drivers, if available. * @param {string} driver From 1936f51e478dcd840d6a44f76402672a45cd9d1e Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Wed, 29 Jun 2016 10:45:17 +0300 Subject: [PATCH 2/2] Update localForage.d.ts --- localForage/localForage.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localForage/localForage.d.ts b/localForage/localForage.d.ts index 029e6bf16b..803bde9e57 100644 --- a/localForage/localForage.d.ts +++ b/localForage/localForage.d.ts @@ -52,7 +52,7 @@ interface LocalForage { config(options: LocalForageOptions): boolean; createInstance(options: LocalForageOptions): LocalForage; - driver(): string | null; + driver(): string; /** * Force usage of a particular driver or drivers, if available. * @param {string} driver