Skip to content

Commit 2924f08

Browse files
Copilothotlong
andcommitted
chore: update useViewStorage.ts comment for v2.0.1 typed API
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 79ab2f9 commit 2924f08

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

hooks/useViewStorage.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ export interface SaveViewInput {
2828

2929
/**
3030
* Helper to access the views namespace on the client.
31-
*
32-
* **Note (v2.0.0)**: The `client.views` API is documented in the v2.0.0 README
33-
* and should be fully implemented, but TypeScript types are not yet exported
34-
* in the .d.ts files. This workaround will be removed once the upstream SDK
35-
* exports the proper type definitions.
36-
*
37-
* See: docs/SDK-V2-UPGRADE.md for details on the expected v2.0.0 API.
31+
*
32+
* As of v2.0.1, `client.views` is fully typed and available at runtime.
33+
* However, this hook's data model (name/visibility/filters) does not yet
34+
* match the SDK's typed view data schema (list/form view configs).
35+
* A future refactor (Phase 4B.1) will align this hook with the SDK types.
3836
*/
3937
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4038
function viewsApi(client: any) {

0 commit comments

Comments
 (0)