您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
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. }