Skip to content

Commit 581ff96

Browse files
Fix unused imports in user preferences service contract
- Remove unused FavoritesValue and RecentItemsValue imports from contracts - Update doc comment to use FavoriteEntry[] instead of FavoritesValue - Keep imports minimal to avoid linting errors Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/b54b7f1e-4c8c-42f9-9546-3efcd7c0dbf7 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent 6b48c7b commit 581ff96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/spec/src/contracts/user-preferences-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

3-
import type { UserPreferenceEntry, FavoriteEntry, FavoritesValue, RecentItemsValue } from '../identity/user-preference.zod';
3+
import type { UserPreferenceEntry, FavoriteEntry } from '../identity/user-preference.zod';
44

55
/**
66
* IUserPreferencesService — User Preferences Service Contract
@@ -24,7 +24,7 @@ import type { UserPreferenceEntry, FavoriteEntry, FavoritesValue, RecentItemsVal
2424
* await prefs.set('user123', 'theme', 'light');
2525
*
2626
* // Get structured data (favorites)
27-
* const favorites = await prefs.get<FavoritesValue>('user123', 'favorites');
27+
* const favorites = await prefs.get<FavoriteEntry[]>('user123', 'favorites');
2828
*
2929
* // Set multiple preferences at once
3030
* await prefs.setMany('user123', {

0 commit comments

Comments
 (0)