You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
484 B

  1. import type { RequiredSubscriptionPlans, Subscription } from './subscription';
  2. export const enum Features {
  3. Stashes = 'stashes',
  4. Timeline = 'timeline',
  5. Worktrees = 'worktrees',
  6. }
  7. export type FeatureAccess =
  8. | { allowed: true; subscription: { current: Subscription; required?: undefined } }
  9. | { allowed: false; subscription: { current: Subscription; required?: RequiredSubscriptionPlans } };
  10. export const enum PlusFeatures {
  11. Timeline = 'timeline',
  12. Worktrees = 'worktrees',
  13. }