Skip to content

@bynary.composables.storage.Function.bindStorage

github-actions[bot] edited this page Jul 11, 2024 · 3 revisions

@bynary/composables / @bynary/composables/storage / bindStorage

Function: bindStorage()

bindStorage<T>(key, value, options?): T

Type Parameters

T extends WritableSignal<undefined | null | string>

Parameters

key: string

The key to use for the storage

value: T

The signal to bind to the storage

options?: IBindStorageOptions

A set of options for the storage

Returns

T

The passed in signal (value parameter)

Defined in

storage/src/bind-storage.composable.ts:49

Clone this wiki locally