Amend Primitives/Tooling
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Encryption, EventEmitter } from '../utils';
|
||||
import { Encrypter, EventEmitter } from '../utils';
|
||||
|
||||
export type StorageOpts = {
|
||||
syncInMemory?: boolean;
|
||||
encryption?: Encryption;
|
||||
encryption?: Encrypter;
|
||||
};
|
||||
|
||||
export type StoreEvents = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { BaseStorage, BaseStore, StorageOpts } from './base-store.js';
|
||||
import { StoreInMemorySynced } from './store-inmemory-synced.js';
|
||||
|
||||
import { Encryption } from '../utils';
|
||||
import { Encrypter } from '../utils';
|
||||
|
||||
import {
|
||||
encodeExtendedJsonObject,
|
||||
@@ -113,7 +113,7 @@ export class StoreIndexedDB extends BaseStore {
|
||||
constructor(
|
||||
public db: IDBPDatabase,
|
||||
public storeName: string,
|
||||
public encryption?: Encryption,
|
||||
public encryption?: Encrypter,
|
||||
) {
|
||||
super();
|
||||
|
||||
@@ -143,7 +143,7 @@ export class StoreIndexedDB extends BaseStore {
|
||||
static async create(
|
||||
db: IDBPDatabase,
|
||||
storeName: string,
|
||||
encryption?: Encryption,
|
||||
encryption?: Encrypter,
|
||||
) {
|
||||
return new this(db, storeName, encryption);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user