Thodoris Greasidis
1936f51e47
Update localForage.d.ts
2016-06-29 10:45:17 +03:00
Thodoris Greasidis
72cfc08675
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.
2016-06-29 10:18:56 +03:00
Mohamed Hegazy
048435315b
Merge pull request #8484 from Riron/patch-2
...
Add createInstance() method
2016-06-26 16:12:58 -07:00
vvakame
56295f5058
replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped
2016-03-17 00:55:26 +09:00
Riron
7f6c9bdbce
Add createInstance() method
...
Adds the missing createInstance() method:
You can create multiple instances of localForage that point to different stores using createInstance. All the configuration options used by config are supported.
```
var store = localforage.createInstance({
name: "nameHere"
});
var otherStore = localforage.createInstance({
name: "otherName"
});
// Setting the key on one of these doesn't affect the other.
store.setItem("key", "value");
otherStore.setItem("key", "value2");
```
2016-03-10 16:54:23 +01:00
vvakame
9027703c0b
pass npm run all in new definition-tester
2016-02-10 00:16:03 +09:00
Sebastien
bed1b13d79
Removed the default keyword as it confuses some IDEs
...
See discussion in https://github.com/mozilla/localForage/issues/494
2016-01-13 06:40:48 +01:00
Stephen Lautier
c192586e9e
changes:
...
- added default export for localforage module (for style es6 imports)
- added createInstance method
- some minor doc
- changed driver to accept also a string (to use their property e.g. localforage.LOCALSTORAGE
- added some minor tests
2015-09-17 00:43:21 +02:00
Stephen Lautier
f0fee739c3
merged conflicts taking theirs
2015-09-17 00:23:45 +02:00
Stephen Lautier
2c70400fc5
Merge branch 'master' of https://github.com/stephenlautier/DefinitelyTyped into localforage
...
Conflicts:
angular-localForage/angular-localForage.d.ts
localForage/localForage-tests.ts
localForage/localForage.d.ts
2015-09-17 00:21:09 +02:00
Stephen Lautier
1f88c485c4
improved localforage to use default exports (the way it usually should be imported)
2015-09-15 23:23:06 +02:00
Stephen Lautier
efa4f9d532
included more definitions
2015-09-15 00:42:46 +02:00
Stephen Lautier
6062a2c9d8
updated localforage to use es6 promises definitions + enabled es6 imports + fixed up generics
...
also updated angular-localForage due to a breaking change in the interface
2015-09-14 03:06:47 +02:00
Gabriel Garcia
90d7feb531
Correct misunderstanding of documentation
2015-07-24 18:18:58 -04:00
Gabriel Garcia
e7335515d8
Update localForage tests
2015-07-24 18:01:38 -04:00
Gabriel Garcia
76ea613b90
localforage typings
2015-07-24 17:46:45 -04:00
YuichiNukiyama
c1e3d36549
FIX4
2015-05-17 11:08:11 +00:00
YuichiNukiyama
ef5547827c
fix3
2015-05-17 11:05:24 +00:00
YuichiNukiyama
6500933c82
fix2
2015-05-17 11:02:48 +00:00
YuichiNukiyama
769b8b05b1
fix linefield
2015-05-17 11:00:04 +00:00
YuichiNukiyama
8e8b26671a
change
2015-05-17 10:55:38 +00:00
YuichiNukiyama
33cc02c182
modified a few bug
2015-05-17 10:10:13 +00:00
YuichiNukiyama
12b79812d6
Update localForage to 1.2
...
localForage has been Changed since last year.So, I update
localforage.d.ts to 1.3.
2015-05-17 09:45:40 +00:00
david pichsenmeister
699ad8ec9f
added tests
2014-02-21 15:03:21 +01:00
david pichsenmeister
33735286ed
added typing of mozilla localForage library
2014-02-04 15:14:35 +01:00