Open ZhangDaZongWei opened 3 years ago
+1
@sifrr/storage@0.0.9
Type definition error, you can add a declaration file to solve it temporarily
import { StorageOptions } from '@sifrr/storage/src/storages/types';
import Storage from '@sifrr/storage/dist/types/storages';
declare type MainOptions = StorageOptions & { priority?: string[]; };
declare module '@sifrr/storage' { interface Sifrr { Storage: { getStorage: (options: MainOptions) => Storage; }; }
export const Sifrr: Sifrr; }
you can use like this
```js
import { Sifrr } from '@sifrr/storage';
const storage = Sifrr.Storage.getStorage({
...
});
the detail of the code:
then
Looking forward to your reply! thanks!