- Added VueIdb plugins: $db.mytable.add({myelem:'value'}) to insert a record, and $db.mytable.toArray() to receive the array.

This commit is contained in:
Paolo Arena
2019-01-05 23:34:29 +01:00
parent fd2321cd20
commit 46609baef8
7 changed files with 87 additions and 43 deletions

7
src/typings/libs/vue-idb.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
import { VueIdb } from 'vue-idb'
declare module 'vue/types/vue' {
interface Vue {
$db: VueIdb
}
}