Amend Primitives/Tooling

This commit is contained in:
Jim Hamill
2025-01-13 09:43:11 +00:00
parent 06c9d52b56
commit f53fc4b456
29 changed files with 817 additions and 463 deletions
+2 -2
View File
@@ -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);
}