diff --git a/src/persist-plugins/async-storage.ts b/src/persist-plugins/async-storage.ts index 3d2c2602..c11367ea 100644 --- a/src/persist-plugins/async-storage.ts +++ b/src/persist-plugins/async-storage.ts @@ -103,7 +103,7 @@ export class ObservablePersistAsyncStorage implements ObservablePersistPlugin { } } -export function createObservablePersistAsyncStorage( +export function configureObservablePersistAsyncStorage( configuration: ObservablePersistAsyncStoragePluginOptions, ): typeof ObservablePersistAsyncStorage { return class ObservablePersistAsyncStorageConfigured extends ObservablePersistAsyncStorage { diff --git a/src/persist-plugins/indexeddb.ts b/src/persist-plugins/indexeddb.ts index 20a65feb..e2cb1a72 100644 --- a/src/persist-plugins/indexeddb.ts +++ b/src/persist-plugins/indexeddb.ts @@ -441,7 +441,7 @@ export class ObservablePersistIndexedDB implements ObservablePersistPlugin { } } -export function createObservablePersistIndexedDB( +export function configureObservablePersistIndexedDB( configuration: ObservablePersistIndexedDBPluginOptions, ): typeof ObservablePersistIndexedDB { return class ObservablePersistIndexedDBConfigured extends ObservablePersistIndexedDB { diff --git a/src/persist-plugins/mmkv.ts b/src/persist-plugins/mmkv.ts index 6db545aa..8c4fec5a 100644 --- a/src/persist-plugins/mmkv.ts +++ b/src/persist-plugins/mmkv.ts @@ -95,7 +95,7 @@ export class ObservablePersistMMKV implements ObservablePersistPlugin { } } -export function createObservablePersistMMKV(configuration: MMKVConfiguration): typeof ObservablePersistMMKV { +export function configureObservablePersistMMKV(configuration: MMKVConfiguration): typeof ObservablePersistMMKV { return class ObservablePersistMMKVConfigured extends ObservablePersistMMKV { constructor() { super(configuration); diff --git a/tests/persist-indexeddb.test.ts b/tests/persist-indexeddb.test.ts index e344c5bb..6ce65199 100644 --- a/tests/persist-indexeddb.test.ts +++ b/tests/persist-indexeddb.test.ts @@ -1,7 +1,7 @@ import { IDBFactory } from 'fake-indexeddb'; import 'fake-indexeddb/auto'; import { observable } from '../src/observable'; -import { createObservablePersistIndexedDB } from '../src/persist-plugins/indexeddb'; +import { configureObservablePersistIndexedDB } from '../src/persist-plugins/indexeddb'; import { configureSynced } from '../src/sync/configureSynced'; import { mapSyncPlugins, syncObservable } from '../src/sync/syncObservable'; import type { ObservablePersistPlugin, ObservablePersistPluginOptions } from '../src/sync/syncTypes'; @@ -17,7 +17,7 @@ const persistOptions: ObservablePersistPluginOptions = { tableNames, }, }; -const myIndexedDBPlugin = createObservablePersistIndexedDB(persistOptions.indexedDB!); +const myIndexedDBPlugin = configureObservablePersistIndexedDB(persistOptions.indexedDB!); const mySyncOptions = configureSynced({ persist: { plugin: myIndexedDBPlugin,