Skip to content

Commit

Permalink
fix: various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuartu committed Sep 23, 2024
1 parent c2f53f6 commit 48b5773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ export default class UserStorageController extends BaseController<

/**
* Allows storage of multiple user data entries for one specific feature. Data stored must be string formatted.
* Developers can extend the entry path and entry name through the `schema.ts` file.
* Developers can extend the entry path through the `schema.ts` file.
*
* @param path - string in the form of `${feature}` that matches schema
* @param values - data to store, in the form of an array of `[entryKey, entryValue]` pairs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export type UserStorageAllFeatureEntriesOptions = UserStorageBaseOptions & {
path: UserStoragePathWithFeatureOnly;
};

export type UserStorageBatchUpsertOptions = UserStorageAllFeatureEntriesOptions;

/**
* User Storage Service - Get Storage Entry.
*
Expand Down Expand Up @@ -198,7 +200,7 @@ export async function upsertUserStorage(
*/
export async function batchUpsertUserStorage(
data: [UserStoragePathWithKeyOnly, string][],
opts: UserStorageAllFeatureEntriesOptions,
opts: UserStorageBatchUpsertOptions,
): Promise<void> {
const { bearerToken, path, storageKey, nativeScryptCrypto } = opts;

Expand Down

0 comments on commit 48b5773

Please sign in to comment.