feat(core): define CasStore, VarStore, TagStore, Store types #44

Merged
xiaoju merged 1 commits from fix/39-store-types into main 2026-06-02 05:56:08 +00:00
Owner

What

Define CasStore, VarStore, TagStore, and aggregate Store types in packages/core/src/types.ts.

Why

Establish the canonical type contracts for the storage layer so backends can implement against a single, well-documented interface set.

Changes

  • Added CasStore, VarStore, TagStore, and Store aggregate type in packages/core/src/types.ts (using type, not interface).
  • Added supporting types: VarSetOptions, VarListOptions, HistoryEntry, Tag, TagOp.
  • Re-exported new types from packages/core/src/index.ts.
  • Added packages/core/src/types-store.test.ts for type-level assertions.

Ref

Fixes #39

## What Define `CasStore`, `VarStore`, `TagStore`, and aggregate `Store` types in `packages/core/src/types.ts`. ## Why Establish the canonical type contracts for the storage layer so backends can implement against a single, well-documented interface set. ## Changes - Added `CasStore`, `VarStore`, `TagStore`, and `Store` aggregate type in `packages/core/src/types.ts` (using `type`, not `interface`). - Added supporting types: `VarSetOptions`, `VarListOptions`, `HistoryEntry`, `Tag`, `TagOp`. - Re-exported new types from `packages/core/src/index.ts`. - Added `packages/core/src/types-store.test.ts` for type-level assertions. ## Ref Fixes #39
xiaoju added 1 commit 2026-06-02 05:55:31 +00:00
xiaoju merged commit 7ff3e438be into main 2026-06-02 05:56:08 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/ocas#44