MCPcopy Create free account
hub / github.com/simstudioai/sim / isUpgradeReason

Function isUpgradeReason

apps/sim/lib/billing/upgrade-reasons.ts:77–79  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

75
76/** Type guard for a raw query value against the known reasons. */
77export function isUpgradeReason(value: string | null | undefined): value is UpgradeReason {
78 return value != null && (UPGRADE_REASONS as readonly string[]).includes(value)
79}
80
81/**
82 * Build a link to the workspace upgrade page, optionally tagged with the reason

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected