Skip to main content

Function: withStorageSync()

Call Signature​

withStorageSync<Input>(key): SignalStoreFeature<Input, SyncFeatureResult>

Defined in: lib/storage-sync/with-storage-sync.ts:66

Type Parameters​

Input​

Input extends SignalStoreFeatureResult

Parameters​

key​

string

Returns​

SignalStoreFeature<Input, SyncFeatureResult>

Call Signature​

withStorageSync<Input>(key, storageStrategy): SignalStoreFeature<Input, AsyncFeatureResult>

Defined in: lib/storage-sync/with-storage-sync.ts:71

Type Parameters​

Input​

Input extends SignalStoreFeatureResult

Parameters​

key​

string

storageStrategy​

AsyncStorageStrategy<Input["state"]>

Returns​

SignalStoreFeature<Input, AsyncFeatureResult>

Call Signature​

withStorageSync<Input>(key, storageStrategy): SignalStoreFeature<Input, SyncFeatureResult>

Defined in: lib/storage-sync/with-storage-sync.ts:77

Type Parameters​

Input​

Input extends SignalStoreFeatureResult

Parameters​

key​

string

storageStrategy​

SyncStorageStrategy<Input["state"]>

Returns​

SignalStoreFeature<Input, SyncFeatureResult>

Call Signature​

withStorageSync<Input>(config): SignalStoreFeature<Input, SyncFeatureResult>

Defined in: lib/storage-sync/with-storage-sync.ts:83

Type Parameters​

Input​

Input extends SignalStoreFeatureResult

Parameters​

config​

SyncConfig<Input["state"]>

Returns​

SignalStoreFeature<Input, SyncFeatureResult>

Call Signature​

withStorageSync<Input>(config, storageStrategy): SignalStoreFeature<Input, AsyncFeatureResult>

Defined in: lib/storage-sync/with-storage-sync.ts:88

Type Parameters​

Input​

Input extends SignalStoreFeatureResult

Parameters​

config​

SyncConfig<Input["state"]>

storageStrategy​

AsyncStorageStrategy<Input["state"]>

Returns​

SignalStoreFeature<Input, AsyncFeatureResult>

Call Signature​

withStorageSync<Input>(config, storageStrategy): SignalStoreFeature<Input, SyncFeatureResult>

Defined in: lib/storage-sync/with-storage-sync.ts:94

Type Parameters​

Input​

Input extends SignalStoreFeatureResult

Parameters​

config​

SyncConfig<Input["state"]>

storageStrategy​

SyncStorageStrategy<Input["state"]>

Returns​

SignalStoreFeature<Input, SyncFeatureResult>