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

16 行
484 B

import type { RequiredSubscriptionPlans, Subscription } from './subscription';
export const enum Features {
Stashes = 'stashes',
Timeline = 'timeline',
Worktrees = 'worktrees',
}
export type FeatureAccess =
| { allowed: true; subscription: { current: Subscription; required?: undefined } }
| { allowed: false; subscription: { current: Subscription; required?: RequiredSubscriptionPlans } };
export const enum PlusFeatures {
Timeline = 'timeline',
Worktrees = 'worktrees',
}