1
import { Vue, VueConstructor, VuexPlugin, StorageDriver } from './interfaces'
2

3 1
import { install } from './install'
4 1
import { createVuexPlugin } from './vuexplugin'
5 1
import * as drivers from './drivers'
6

7
export interface vjs {
8
	(): VuexPlugin<Object>
9
	install: (Vue: VueConstructor) => void
10
	drivers: { localStorage: StorageDriver; sessionStorage: StorageDriver }
11
}
12 1
const vuejsStorage = <vjs>function(option) {
13 1
	return createVuexPlugin(option)
14
}
15 1
vuejsStorage.install = install
16 1
vuejsStorage.drivers = drivers
17

18 1
export default vuejsStorage

Read our documentation on viewing source code .

Loading