Skip to content

basalt / subscriptions/src / StoredPlan

Interface: StoredPlan ​

Defined in: subscriptions/src/plan-store.ts:11

Persisting the plan catalog. Plans are consumed as a synchronous Plans object (by planPrice, feature checks and the route guards), so the durable source of truth lives here and is loaded once at boot into that object — edit a plan in the store, restart to apply. A PlanStore is the neutral interface; back it with your database (see the per-package prisma/sqlite stores) or use the in-memory one for tests/seeds.

Properties ​

definition ​

> definition: PlanDefinition

Defined in: subscriptions/src/plan-store.ts:14


name ​

> name: string

Defined in: subscriptions/src/plan-store.ts:13

Catalog key, e.g. 'pro'.

Released under the MIT License.