We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
init
null
1 parent bb67910 commit 77d790aCopy full SHA for 77d790a
packages/storage/src/index.ts
@@ -749,6 +749,12 @@ export interface WxtStorage {
749
key: StorageItemKey,
750
options: WxtStorageItemOptions<TValue> & { defaultValue: TValue },
751
): WxtStorageItem<TValue, TMetadata>;
752
+ defineItem<TValue, TMetadata extends Record<string, unknown> = {}>(
753
+ key: StorageItemKey,
754
+ options: WxtStorageItemOptions<TValue> & {
755
+ init: () => TValue | Promise<TValue>;
756
+ },
757
+ ): WxtStorageItem<TValue, TMetadata>;
758
defineItem<TValue, TMetadata extends Record<string, unknown> = {}>(
759
760
options: WxtStorageItemOptions<TValue>,
0 commit comments